T
- Exception type this event representspublic interface ExceptionEvent<T extends Throwable>
Modifier and Type | Method and Description |
---|---|
void |
abort()
Instructs the dispatcher to abort further processing of handlers.
|
T |
getException()
The exception causing this event.
|
void |
handled()
Instructs the dispatcher to terminate additional handler processing and mark the event as handled.
|
void |
handledAndContinue()
Default instruction to dispatcher, continues handler processing.
|
boolean |
isMarkedHandled()
Check to see if this exception has been handled.
|
void |
rethrow(Throwable t)
Rethrow the exception, but use the given exception instead of the original.
|
void |
skipCause()
Similar to
handledAndContinue() ,
but instructs the dispatcher to markHandled to the next element
in the cause chain without processing additional handlers for this cause chain element. |
void |
throwOriginal()
Instructs the dispatcher to throw the original exception after handler processing.
|
void |
unmute()
Instructs the dispatcher to allow this handler to be invoked again.
|
T getException()
void abort()
void throwOriginal()
void handled()
void handledAndContinue()
void skipCause()
handledAndContinue()
,
but instructs the dispatcher to markHandled to the next element
in the cause chain without processing additional handlers for this cause chain element.void unmute()
void rethrow(Throwable t)
t
- Exception to be thrown in place of the original.boolean isMarkedHandled()
Copyright © 2016 The Apache Software Foundation. All rights reserved.