|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.solder.exception.control.CaughtException<T>
T
- Exception type this event representspublic class CaughtException<T extends Throwable>
Payload for an exception to be handled. This object is not immutable as small pieces of the state may be set by the handler.
Nested Class Summary | |
---|---|
protected static class |
CaughtException.ExceptionHandlingFlow
Flow control enum. |
Constructor Summary | |
---|---|
CaughtException(ExceptionStack exceptionStack,
boolean breadthFirstTraversal,
boolean handled)
Initial state constructor. |
Method Summary | |
---|---|
void |
abort()
Instructs the dispatcher to abort further processing of handlers. |
void |
dropCause()
Similar to markHandled() , but instructs the dispatcher to markHandled to the next element
in the cause chain without processing additional handlers for this cause chain element. |
T |
getException()
|
ExceptionStack |
getExceptionStack()
|
protected CaughtException.ExceptionHandlingFlow |
getFlow()
|
protected Throwable |
getThrowNewException()
|
void |
handled()
Instructs the dispatcher to terminate additional handler processing and mark the event as handled. |
boolean |
isBreadthFirstTraversal()
|
boolean |
isDepthFirstTraversal()
|
boolean |
isMarkedHandled()
|
protected boolean |
isUnmute()
|
void |
markHandled()
Default instruction to dispatcher, continues handler processing. |
void |
rethrow()
Instructs the dispatcher to rethrow the event exception after handler processing. |
void |
rethrow(Throwable t)
Rethrow the exception, but use the given exception instead of the original. |
void |
unmute()
Instructs the dispatcher to allow this handler to be invoked again. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CaughtException(ExceptionStack exceptionStack, boolean breadthFirstTraversal, boolean handled)
exceptionStack
- Information about the current exception and cause chain.breadthFirstTraversal
- flag indicating the direction of the cause chain traversalhandled
- flag indicating the exception has already been handled by a previous handler
IllegalArgumentException
- if exceptionStack is nullMethod Detail |
---|
public T getException()
public void abort()
public void rethrow()
public void handled()
public void markHandled()
public void dropCause()
markHandled()
, but instructs the dispatcher to markHandled to the next element
in the cause chain without processing additional handlers for this cause chain element.
public void unmute()
public boolean isBreadthFirstTraversal()
public boolean isDepthFirstTraversal()
protected boolean isUnmute()
public ExceptionStack getExceptionStack()
protected CaughtException.ExceptionHandlingFlow getFlow()
public boolean isMarkedHandled()
public void rethrow(Throwable t)
t
- Exception to be thrown in place of the original.protected Throwable getThrowNewException()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |