Skip to main content

set-error-handler!

functionv1.2

clojure.core/set-error-handler!

Available in:BBCLJ
(set-error-handler! [a handler-fn])
Sets the error-handler of agent a to handler-fn. If an action being run by the agent throws an exception or doesn't pass the validator fn, handler-fn will be called with two arguments: the agent and the exception.

No examples yet. Be the first to add one!