We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check!
Exceptions aren't caught when check! invokes the passed predicates.
(check! pos? nil) is handled gracefully
(check! pos? nil)
An error is thrown opaquely. Particularly, this makes speced/defn less useful
speced/defn
unit.nedap.utils.speced.defn.destructuring> (check! pos? nil) Execution error (NullPointerException) at unit.nedap.utils.speced.defn.destructuring/eval190893 (form-init2166769074214536620.clj:1). null #error { :cause nil :via [{:type java.lang.NullPointerException :message nil :at [clojure.lang.Numbers ops "Numbers.java" 1068]}] :trace [[clojure.lang.Numbers ops "Numbers.java" 1068] [clojure.lang.Numbers isPos "Numbers.java" 121] [clojure.core$pos_QMARK_ invokeStatic "core.clj" 1252] [clojure.core$pos_QMARK_ invoke "core.clj" 1247] [clojure.spec.alpha$spec_impl$reify__1987 conform_STAR_ "alpha.clj" 875] [clojure.spec.alpha$valid_QMARK_ invokeStatic "alpha.clj" 755] [clojure.spec.alpha$valid_QMARK_ invoke "alpha.clj" 751]
Happens on any util.spec version
nedap.utils.spec.impl.check
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
Brief
Exceptions aren't caught when
check!
invokes the passed predicates.Expected behavior
(check! pos? nil)
is handled gracefullyActual behavior
An error is thrown opaquely. Particularly, this makes
speced/defn
less usefulReproduction steps
(check! pos? nil)
Screenshot, stacktrace, etc
Environment info
Happens on any util.spec version
Tech improvement
Proposal
nedap.utils.spec.impl.check
Alternatives and comparison
The text was updated successfully, but these errors were encountered: