Class FlowExecutionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.webflow.core.FlowException
org.springframework.webflow.execution.FlowExecutionException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ActionExecutionException
,EnterStateVetoException
,FlowAttributeMappingException
,NoMatchingTransitionException
,ViewRenderingException
Base class for exceptions that occur within a flow while it is executing. Can be used directly, but you are
encouraged to create a specific subclass for a particular use case.
Execution exceptions occur at runtime when the flow is executing requests on behalf of a client. They signal that an execution problem occurred: e.g. action execution failed or no transition matched the current request context.
- Author:
- Keith Donald, Erwin Vervaet
- See Also:
-
Constructor Summary
ConstructorDescriptionFlowExecutionException
(String flowId, String stateId, String message) Creates a new flow execution exception.FlowExecutionException
(String flowId, String stateId, String message, Throwable cause) Creates a new flow execution exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns the id of the flow definition that was executing when this exception occured.Returns the id of the state definition where the exception occured.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FlowExecutionException
Creates a new flow execution exception.- Parameters:
flowId
- the flow where the exception occurredstateId
- the state where the exception occurredmessage
- a descriptive message
-
FlowExecutionException
Creates a new flow execution exception.- Parameters:
flowId
- the flow where the exception occuredstateId
- the state where the exception occuredmessage
- a descriptive messagecause
- the root cause
-
-
Method Details
-
getFlowId
Returns the id of the flow definition that was executing when this exception occured. -
getStateId
Returns the id of the state definition where the exception occured. Could be null if no state was active at the time when the exception was thrown.
-