Liking cljdoc? Tell your friends :D

cl4cl.error

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?.
raw docstring

connectionclj

(connection cause)

The ex-info for a request that got no response.

The ex-info for a request that got no response.
sourceraw docstring

from-eventclj

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

from-responseclj

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

retryable?clj

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

typesclj

The API's error.type strings and the keyword each becomes.

The API's error.type strings and the keyword each becomes.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close