Class WorkflowException

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

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.

WorkflowException provides multiple constructors to support different error scenarios, including cases where only a message is available, only a cause is available, or both a message and cause are available.

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