Class WorkflowException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.yworkflow.common.error.WorkflowException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidInputException, InvalidStateException, InvalidTransitionException, InvalidWorkflowDefinitionException, InvalidWorkflowInstanceStatusException, WorkflowFactoryException, WorkflowInitializationException

public class WorkflowException extends Exception
Base exception class for all workflow-related errors in the yWorkflow engine. This exception is thrown when workflow operations fail due to various reasons such as invalid state transitions, missing definitions, or runtime errors.
Since:
1.0
See Also:
  • Constructor Details

    • WorkflowException

      public WorkflowException()
      Constructs a new WorkflowException with no detail message and no cause.
    • WorkflowException

      public WorkflowException(String message)
      Constructs a new WorkflowException with the specified detail message.
      Parameters:
      message - the detail message explaining the error
    • WorkflowException

      public WorkflowException(Throwable cause)
      Constructs a new WorkflowException with the specified cause.
      Parameters:
      cause - the cause of the exception
    • WorkflowException

      public WorkflowException(String message, Throwable cause)
      Constructs a new WorkflowException with the specified detail message and cause.
      Parameters:
      message - the detail message explaining the error
      cause - the cause of the exception