API failures as data. Every failure is an ex-info whose :type is a keyword in a hierarchy: all types derive from ::error, and the ones worth retrying derive from ::retryable. Test with isa?.
API failures as data. Every failure is an ex-info whose :type is a keyword in a hierarchy: all types derive from ::error, and the ones worth retrying derive from ::retryable. Test with isa?.
(connection cause)The ex-info for a request that got no response.
The ex-info for a request that got no response.
(from-event payload)The ex-info for an error event received in a stream after a 200.
The ex-info for an error event received in a stream after a 200.
(from-response {:keys [status headers body]})The ex-info for a non-2xx response {:status :headers :body}, where :body is the raw string.
The ex-info for a non-2xx response {:status :headers :body}, where
:body is the raw string.(retryable? e)Is this exception a cl4cl failure that may succeed if tried again?
Is this exception a cl4cl failure that may succeed if tried again?
The API's error.type strings and the keyword each becomes.
The API's error.type strings and the keyword each becomes.
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 |