|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.webflow.engine.support.TransitionExecutingStateExceptionHandler
public class TransitionExecutingStateExceptionHandler
A flow execution exception handler that maps the occurence of a specific type of
exception to a transition to a new State.
| Field Summary | |
|---|---|
static java.lang.String |
ROOT_CAUSE_EXCEPTION_ATTRIBUTE
The name of the attribute to expose a root cause of a handled exception under in flash scope. |
static java.lang.String |
STATE_EXCEPTION_ATTRIBUTE
The name of the attribute to expose a handled exception under in flash scope. |
| Constructor Summary | |
|---|---|
TransitionExecutingStateExceptionHandler()
|
|
| Method Summary | |
|---|---|
TransitionExecutingStateExceptionHandler |
add(java.lang.Class exceptionClass,
java.lang.String targetStateId)
Adds an exception->state mapping to this handler. |
TransitionExecutingStateExceptionHandler |
add(java.lang.Class exceptionClass,
TargetStateResolver targetStateResolver)
Adds a exception->state mapping to this handler. |
protected java.lang.Throwable |
findRootCause(java.lang.Throwable t)
Find the root cause of given throwable. |
ActionList |
getActionList()
Returns the list of actions to execute when this handler handles an exception. |
protected TargetStateResolver |
getTargetStateResolver(FlowExecutionException e)
Find the mapped target state resolver for given exception. |
ViewSelection |
handle(FlowExecutionException e,
RequestControlContext context)
Handle the exception in the context of the current request, optionally making an error view selection that should be rendered. |
boolean |
handles(FlowExecutionException e)
Can this handler handle the given exception? |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String STATE_EXCEPTION_ATTRIBUTE
public static final java.lang.String ROOT_CAUSE_EXCEPTION_ATTRIBUTE
| Constructor Detail |
|---|
public TransitionExecutingStateExceptionHandler()
| Method Detail |
|---|
public TransitionExecutingStateExceptionHandler add(java.lang.Class exceptionClass,
java.lang.String targetStateId)
exceptionClass - the type of exception to maptargetStateId - the id of the state to transition to if the
specified type of exception is handled
public TransitionExecutingStateExceptionHandler add(java.lang.Class exceptionClass,
TargetStateResolver targetStateResolver)
exceptionClass - the type of exception to maptargetStateResolver - the resolver to calculate the state to
transition to if the specified type of exception is handled
public ActionList getActionList()
public boolean handles(FlowExecutionException e)
FlowExecutionExceptionHandler
handles in interface FlowExecutionExceptionHandlere - the exception that occured
public ViewSelection handle(FlowExecutionException e,
RequestControlContext context)
FlowExecutionExceptionHandler
handle in interface FlowExecutionExceptionHandlere - the exception that occuredcontext - the execution control context for this request
protected TargetStateResolver getTargetStateResolver(FlowExecutionException e)
null if no mapping can be found for given exception. Will
try all exceptions in the exception cause chain.
protected java.lang.Throwable findRootCause(java.lang.Throwable t)
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||