Class FlowExecutionException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ActionExecutionException, EnterStateVetoException, FlowAttributeMappingException, NoMatchingTransitionException, ViewRenderingException

public class FlowExecutionException extends FlowException
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 Details

    • FlowExecutionException

      public FlowExecutionException(String flowId, String stateId, String message)
      Creates a new flow execution exception.
      Parameters:
      flowId - the flow where the exception occurred
      stateId - the state where the exception occurred
      message - a descriptive message
    • FlowExecutionException

      public FlowExecutionException(String flowId, String stateId, String message, Throwable cause)
      Creates a new flow execution exception.
      Parameters:
      flowId - the flow where the exception occured
      stateId - the state where the exception occured
      message - a descriptive message
      cause - the root cause
  • Method Details

    • getFlowId

      public String getFlowId()
      Returns the id of the flow definition that was executing when this exception occured.
    • getStateId

      public String 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.