Error formatting - leaf module.
Pure functions for turning exceptions, anomaly maps, and ad-hoc error values into human-readable strings. Lives in its own namespace so any layer (SDK facade, channels, extensions, the iteration loop) can format an error without dragging in the rest of the SDK.
Public API:
error-message - raw text from a Throwable / map / string
format-error - prefix "ERROR: " idempotently
final-answer-code-error-message - the "Final-answer code error: ..." prefix
used by the iteration loop when an
(done ...) form's own code throws.
Error formatting - leaf module.
Pure functions for turning exceptions, anomaly maps, and ad-hoc
error values into human-readable strings. Lives in its own
namespace so any layer (SDK facade, channels, extensions, the
iteration loop) can format an error without dragging in the rest
of the SDK.
Public API:
`error-message` - raw text from a Throwable / map / string
`format-error` - prefix "ERROR: " idempotently
`final-answer-code-error-message` - the "Final-answer code error: ..." prefix
used by the iteration loop when an
`(done ...)` form's own code throws.(error-message v)Build an error message string from a Throwable, map, or string.
Build an error message string from a Throwable, map, or string.
(format-error v)Add the standard ERROR: prefix to an error message, idempotent.
Add the standard `ERROR: ` prefix to an error message, idempotent.
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 |