Liking cljdoc? Tell your friends :D

rp.condition.maybe


error?clj

(error? x)
source

handleclj

(handle ok-fn error-fn x)
source

IErrorcljprotocol

error-dataclj

(error-data this)
source

make-errorclj

(make-error data)

Make an IError from anything. data can be whatever type you like (map, keyword, whatever). Choose your own conventions for error payloads.

Make an IError from anything.
`data` can be whatever type you like (map, keyword, whatever).
Choose your own conventions for error payloads.
sourceraw docstring

pipelineclj

(pipeline [f & more-fs] init)

Pass init data value into a pipeline of functions. As soon as an error is encountered, the pipeline will return it. Otherwise the return value from each step function will be passed as the input into the next function until all functions have been called, and the final result will be returned.

When there are no functions, simply returns init

Pass `init` data value into a pipeline of functions.
As soon as an error is encountered, the pipeline will return it.
Otherwise the return value from each step function will be passed as the input into the
next function until all functions have been called, and the final result will be returned.

When there are no functions, simply returns `init`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close