(as-error x)
Inputs: [x :- s/Any] Returns: ErrorResult
Format any value as an error. Preferable to using the keyword manually, but the tools in utils are preferred over explicitly creating errors.
Inputs: [x :- s/Any] Returns: ErrorResult Format any value as an error. Preferable to using the keyword manually, but the tools in utils are preferred over explicitly creating errors.
(get-error {:danger-mouse.schema/keys [error]})
Inputs: [#:danger-mouse.schema{:keys [error]}]
Retrieve error value, which can be an Any (not necessarily an exception). Preferable to destructuring manually.
Inputs: [#:danger-mouse.schema{:keys [error]}] Retrieve error value, which can be an Any (not necessarily an exception). Preferable to destructuring manually.
(is-error? {:danger-mouse.schema/keys [error]})
Inputs: [#:danger-mouse.schema{:keys [error]}] Returns: s/Bool
Check whether a value is an error. Preferable to checking the keyword manually.
Inputs: [#:danger-mouse.schema{:keys [error]}] Returns: s/Bool Check whether a value is an error. Preferable to checking the keyword manually.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close