Contenu connexe
Plus de Jackson dos Santos Olveira
Plus de Jackson dos Santos Olveira (20)
Clojure functions 3
- 4. Set-error-handler - set-error-mode
(def bond (agent 1))
(defn handle-log-error [the-agent the-err]
(println (str "the Agent " the-agent " threw the exception " the-err))
)
(set-error-handler! bond handle-log-error)
(set-error-mode! bond :fail)
(send bond / 0)