Package com.yworkflow.common.error
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
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 Summary
ConstructorsConstructorDescriptionConstructs a new WorkflowException with no detail message and no cause.WorkflowException(String message) Constructs a new WorkflowException with the specified detail message.WorkflowException(String message, Throwable cause) Constructs a new WorkflowException with the specified detail message and cause.WorkflowException(Throwable cause) Constructs a new WorkflowException with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WorkflowException
public WorkflowException()Constructs a new WorkflowException with no detail message and no cause. -
WorkflowException
Constructs a new WorkflowException with the specified detail message.- Parameters:
message- the detail message explaining the error
-
WorkflowException
Constructs a new WorkflowException with the specified cause.- Parameters:
cause- the cause of the exception
-
WorkflowException
Constructs a new WorkflowException with the specified detail message and cause.- Parameters:
message- the detail message explaining the errorcause- the cause of the exception
-