Modifier and Type | Class and Description |
---|---|
protected static class |
CaughtException.ExceptionHandlingFlow
Flow control enum.
|
Constructor and Description |
---|
CaughtException(ExceptionStack exceptionStack,
boolean breadthFirstTraversal,
boolean handled)
Initial state constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 handlerIllegalArgumentException
- if exceptionStack is nullpublic 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()
Copyright © 2012 Seam Framework. All Rights Reserved.