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 the computation f
in the context of the current Local
monitor.
An exception catcher that attempts to handle exceptions with the current monitor.
Get the current Local monitor or a NullMonitor if none has been set.
Handle exc
with the current Local monitor.
Handle exc
with the current Local monitor. If the
Local monitor fails to handle the exception, it is handled by
the RootMonitor.
whether the exception was handled by this Monitor
Checks whether or not monitoring is activated, meaning that the currently-set Monitor is non-null.
Checks whether or not monitoring is activated, meaning that the currently-set Monitor is non-null.
true if currently-set Monitor is the NullMonitor. False otherwise.
Create a new monitor from a partial function.
A new monitor which, if this
fails to handle the exception,
attempts to let next
handle it.
A new monitor which, if this
fails to handle the exception,
attempts to let next
handle it.
Restore the Local monitor after running computation f
Restore the Local monitor after running computation f
Set the Local monitor
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.
Compute f
with the Local monitor set to m
Compute f
with the Local monitor set to m
Defines the (Future)-
Local
monitor as well as some monitor utilities.