(typed-error error-type)(typed-error error-type {:as m :keys [message data cause]})Returns type specified merr.core.MerrError
=> (def custom-error (partial typed-error ::custom))
var?
=> (:type (custom-error))
::custom
=> (:message (custom-error {:message "hello"}))
"hello"
Returns type specified `merr.core.MerrError`
```
=> (def custom-error (partial typed-error ::custom))
var?
=> (:type (custom-error))
::custom
=> (:message (custom-error {:message "hello"}))
"hello"
```(typed-error? error-type err)Returns true if x is type specified merr.core.MerrError
=> (def custom-error? (partial typed-error? ::custom))
var?
=> (custom-error? (merr.core/error {:type ::custom}))
true
=> (custom-error? (merr.core/error {:type ::another}))
false
=> (derive ::derived ::custom)
nil
=> (custom-error? (merr.core/error {:type ::derived}))
true
Returns `true` if x is type specified `merr.core.MerrError`
```
=> (def custom-error? (partial typed-error? ::custom))
var?
=> (custom-error? (merr.core/error {:type ::custom}))
true
=> (custom-error? (merr.core/error {:type ::another}))
false
=> (derive ::derived ::custom)
nil
=> (custom-error? (merr.core/error {:type ::derived}))
true
```
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |