Exit handling: exceptions, reasons, and exit API.
Exit handling: exceptions, reasons, and exit API.
(ex->reason e)Convert an exception to an exit reason. If the exception has an ::exit-reason in ex-data, returns that. Otherwise returns [:exception e] with the raw Throwable.
For custom exception formatting, use :ex->reason-fn spawn option.
Convert an exception to an exit reason. If the exception has an ::exit-reason in ex-data, returns that. Otherwise returns [:exception e] with the raw Throwable. For custom exception formatting, use :ex->reason-fn spawn option.
(exit reason)(exit pid reason)Exit current process or send exit signal to another.
(exit reason) - exit current process with reason (exit pid reason) - send exit signal to pid with current process's context
Exit current process or send exit signal to another. (exit reason) - exit current process with reason (exit pid reason) - send exit signal to pid with current process's context
(exit-exception reason)Create an exception for process exit.
Create an exception for process exit.
(exit-exception? e)Returns true if e is an exit exception.
Returns true if e is an exit exception.
(exit-reason e)Extract exit reason from an exit exception, or nil.
Extract exit reason from an exit exception, or nil.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |