Skip to content

clojure.core/set-error-handler!

View this page on ClojureDocs

Type: function Added: Clojure 1.2 Examples: 2 Runnable: 0
([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.

Examples

by Claj on . May have evaluation errors.
by cloojure on . May have evaluation errors.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.