public class DefaultExceptionHandler extends Object implements ExceptionHandler
Constructor and Description |
---|
DefaultExceptionHandler()
Creates a new default exception handler.
|
Modifier and Type | Method and Description |
---|---|
void |
thrown(DispatcherOp<?> op,
Object subscriber,
Throwable t,
Thread dt)
A throwable has been thrown when notifying a subscriber of a
dispatch operation.
|
void |
thrown(Runnable task,
Throwable t,
Thread dt)
A throwable has been thrown when running a task in a dispatcher
thread.
|
void |
thrown(Throwable t)
A throwable has been thrown in some other situation (e.g.,
creating a thread).
|
public DefaultExceptionHandler()
public void thrown(DispatcherOp<?> op, Object subscriber, Throwable t, Thread dt)
ExceptionHandler
thrown
in interface ExceptionHandler
op
- the dispatch operation, cannot be null
subscriber
- the subscriber being notified, cannot be
null
t
- the throwable, cannot be null
dt
- the dispatcher thread, cannot be null
public void thrown(Runnable task, Throwable t, Thread dt)
ExceptionHandler
thrown
in interface ExceptionHandler
task
- the runnable, cannot be null
t
- the throwable, cannot be null
dt
- the dispatcher thread, cannot be null
public void thrown(Throwable t)
ExceptionHandler
thrown
in interface ExceptionHandler
t
- the throwable, cannot be null
Copyright © 2015. All rights reserved.