(failure-rwpromise-mv ctx e)
t: <env> -> Promise<log,val>
t: <env> -> Promise<log,val>
(failure-rwpromise-result e)
(failure-rwpromise-result e failure-channel)
take an exception and some failure-channel data, and return a Promise of failure... which is an ex-info holding the failure channel data
if the provided exception already has failure-channel data, then it's a wrapped exception, in which case, preserve the original cause in a new wrapper (along with the provided failure-channel data)
if the provided exception does not have failure-channel data, then it is the cause, so use it as the cause in a new wrapper, along with the provided failure-channel data
t: Promise<log,val>
take an exception and some failure-channel data, and return a Promise of failure... which is an ex-info holding the failure channel data if the provided exception already has failure-channel data, then it's a wrapped exception, in which case, preserve the original cause in a new wrapper (along with the provided failure-channel data) if the provided exception does not have failure-channel data, then it is the cause, so use it as the cause in a new wrapper, along with the provided failure-channel data t: Promise<log,val>
(rw-promise-t-bind-2 output-ctx inner-ctx m inner-mv discard-val? inner-2-mf)
(unwrap-cause e)
get at the original exception
if the provided exception has failure-channel data, then it wraps the original exception
if the provided exception has no failure-channel data, then it is the original exception
get at the original exception if the provided exception has failure-channel data, then it wraps the original exception if the provided exception has no failure-channel data, then it is the original exception
(unwrap-exception e)
remove j.u.c exception wrappers
remove j.u.c exception wrappers
(unwrap-failure-channel e)
we use an ex-data to propagate effects in case of failure. we do this because j.u.c.CompletableFutures only supports Exceptions as failure cases
we use an ex-data to propagate effects in case of failure. we do this because j.u.c.CompletableFutures only supports Exceptions as failure cases
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close