Class EnterStateVetoException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.webflow.core.FlowException
org.springframework.webflow.execution.FlowExecutionException
org.springframework.webflow.execution.EnterStateVetoException
- All Implemented Interfaces:
Serializable
Exception thrown to veto the entering of a state of a flow. Typically thrown by
FlowExecutionListener
objects
that apply security or other runtime constraint checks to flow executions.- Author:
- Keith Donald, Erwin Vervaet
- See Also:
-
Constructor Summary
ConstructorDescriptionEnterStateVetoException
(String flowId, String sourceStateId, String vetoedStateId, String message) Create a new enter state veto exception.EnterStateVetoException
(String flowId, String sourceStateId, String vetoedStateId, String message, Throwable cause) Create a new enter state veto exception.EnterStateVetoException
(RequestContext context, StateDefinition vetoedState, String message) Create a new enter state veto exception.EnterStateVetoException
(RequestContext context, StateDefinition vetoedState, String message, Throwable cause) Create a new enter state veto exception. -
Method Summary
Modifier and TypeMethodDescriptionReturns the state for which entering was vetoed.Methods inherited from class org.springframework.webflow.execution.FlowExecutionException
getFlowId, getStateId
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EnterStateVetoException
public EnterStateVetoException(String flowId, String sourceStateId, String vetoedStateId, String message) Create a new enter state veto exception.- Parameters:
flowId
- the active flowsourceStateId
- the current state when the veto operation occuredvetoedStateId
- the state for which entering is vetoedmessage
- a descriptive message
-
EnterStateVetoException
public EnterStateVetoException(String flowId, String sourceStateId, String vetoedStateId, String message, Throwable cause) Create a new enter state veto exception.- Parameters:
flowId
- the active flowsourceStateId
- the current state when the veto operation occuredvetoedStateId
- the state for which entering is vetoedmessage
- a descriptive messagecause
- the underlying cause
-
EnterStateVetoException
Create a new enter state veto exception.- Parameters:
context
- the flow execution request contextvetoedState
- the state for which entering is vetoedmessage
- a descriptive message
-
EnterStateVetoException
public EnterStateVetoException(RequestContext context, StateDefinition vetoedState, String message, Throwable cause) Create a new enter state veto exception.- Parameters:
context
- the flow execution request contextvetoedState
- the state for which entering is vetoedmessage
- a descriptive messagecause
- the underlying cause
-
-
Method Details
-
getVetoedStateId
Returns the state for which entering was vetoed.
-