ClojureDocs

导航

命名空间

set-error-handler!

clojure.core

自 1.2 起可用 (源代码)
  • (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.