Liking cljdoc? Tell your friends :D

danger-mouse.schema


as-errorclj

(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.
sourceraw docstring

ErrorResultclj

source

get-errorclj

(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.
sourceraw docstring

GroupedResultsclj

source

is-error?clj

(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.
sourceraw docstring

ProcessedErrorclj

source

WithErrorsclj

(WithErrors schema)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close