Extensible error category registry for the Result DSL.
Base categories are universal (IO, effect, parse, transport). Consumers register domain-specific categories at startup via register!.
Extensible error category registry for the Result DSL. Base categories are universal (IO, effect, parse, transport). Consumers register domain-specific categories at startup via register!.
(known-error? category)True if category is a registered error keyword.
True if category is a registered error keyword.
(register! categories)Register a set of error category keywords. Idempotent — safe to call multiple times with overlapping sets.
(register! #{:kg/node-not-found :chroma/connection-failed})
Register a set of error category keywords.
Idempotent — safe to call multiple times with overlapping sets.
(register! #{:kg/node-not-found :chroma/connection-failed})(registered-categories)Return the current set of all registered error categories.
Return the current set of all registered error categories.
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 |