Attempt to handle the exception exc
.
Attempt to handle the exception exc
.
whether the exception was handled by this Monitor
A new monitor which first handles the exception with this
,
then passes it onto next
unconditionally.
A new monitor which first handles the exception with this
,
then passes it onto next
unconditionally. The new monitor
handles the exception if either this
or next
does.
Run f
inside of the monitor context.
Run f
inside of the monitor context. If f
throws
an exception - directly or not - it is handled by this
monitor.
A new monitor which, if this
fails to handle the exception,
attempts to let next
handle it.
An implementation widget: attempts to handle exc
returning a
com.twitter.util.Try[Unit]
.
An implementation widget: attempts to handle exc
returning a
com.twitter.util.Try[Unit]
. If the exception is unhandled,
we return Throw(exc)
, if the handler throws an exception, we
wrap it in a MonitorException.
A Monitor is a composable exception handler. It is independent of position, divorced from the notion of a call stack. Monitors do not recover values from a failed computations: It handles only true exceptions that may require cleanup.