Liking cljdoc? Tell your friends :D

dawcs.flow


*exception-base-class*clj

Base exception class which will be caught by call. Dynamic, defaults to Throwable

Base exception class which will be caught by `call`. Dynamic, defaults to `Throwable`
sourceraw docstring

*ignored-exceptions*clj

Exception classes which will be ignored by call. Dynamic, defaults to empty set

Exception classes which will be ignored by `call`. Dynamic, defaults to empty set
sourceraw docstring

add-ignored-exceptions!clj

(add-ignored-exceptions! ex-class-set)

Adds given set of classes to *ignored-exceptions*

Adds given set of classes to `*ignored-exceptions*`
sourceraw docstring

callclj

(call f & args)

Wraps given function call with supplied args in try/catch block. When caught an exception which class is *exception-base-class*(defaults to Throwable) or a subclass of it, returns it, otherwise throws it. Returns function call result if no exception has caught

Wraps given function call with supplied args in `try/catch` block. When caught an exception
which class is `*exception-base-class*`(defaults to `Throwable`) or a subclass of it,
returns it, otherwise `throw`s it. Returns function call result if no exception has caught
sourceraw docstring

catch-from!clj

(catch-from! ex-class)

Sets exception-base-class to specified class

Sets *exception-base-class* to specified class
sourceraw docstring

catchingcljmacro

(catching exception-base-class & body)

Executes body with *exception-base-class* bound to given class

Executes body with `*exception-base-class*` bound to given class
sourceraw docstring

elseclj

(else handler value)

If value is a fail?, calls handler on it, otherwise returns value

If value is a `fail?`, calls handler on it, otherwise returns value
sourceraw docstring

failclj

(fail msg)
(fail msg data)
(fail msg data cause)

Creates new ex-info instance with given msg, data(optional) and cause(optional)

Creates new `ex-info` instance with given msg, data(optional) and cause(optional)
sourceraw docstring

fail?clj

(fail? value)
(fail? ex-class value)

Checks if value is exception of given class(optional, defaults to Throwable)

Checks if value is exception of given class(optional, defaults to Throwable)
sourceraw docstring

fletcljmacro

(flet bindings & body)

Enables common Clojure let syntax using bindings for processing with flow

Enables common Clojure let syntax using bindings for processing with flow
sourceraw docstring

ignore-exceptions!clj

(ignore-exceptions! ex-class-set)

Sets *ignored-exceptions* to given set

Sets `*ignored-exceptions*` to given set
sourceraw docstring

ignored?clj

(ignored? ex-class)

Checks if exception class should be ignored

Checks if exception class should be ignored
sourceraw docstring

ignoringcljmacro

(ignoring ignored-exceptions & body)

Executes body with *ignored-exceptions* bound to given value

Executes body with `*ignored-exceptions*` bound to given value
sourceraw docstring

thenclj

(then handler value)

If value is not a fail?, applies f to it wrapped to call, otherwise returns value

If value is not a `fail?`, applies f to it wrapped to `call`, otherwise returns value
sourceraw docstring

thruclj

(thru handler value)

If value is a fail?, calls handler on it (for side effects). Returns value

If value is a `fail?`, calls handler on it (for side effects). Returns value
sourceraw docstring

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

× close