ClojureDocs

Nav

Namespaces

set-error-handler!

clojure.core

Available since 1.2 (source)
  • (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.