Class InvalidTransitionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.yworkflow.common.error.WorkflowException
com.yworkflow.definition.model.error.InvalidTransitionException
All Implemented Interfaces:
Serializable

public class InvalidTransitionException extends WorkflowException
Exception thrown when a transition is invalid or cannot be executed. InvalidTransitionException is a specialized exception for transition-related errors, providing specific information about the invalid transition.
Since:
1.0
See Also:
  • Constructor Details

    • InvalidTransitionException

      public InvalidTransitionException(TransitionId transitionId)
      Creates a new InvalidTransitionException for the specified transition.
      Parameters:
      transitionId - the ID of the invalid transition
  • Method Details

    • getTransitionId

      public TransitionId getTransitionId()
      Gets the ID of the invalid transition.
      Returns:
      the transition ID
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable