Package com.yworkflow.instance.error
Class InvalidWorkflowDefinitionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.yworkflow.common.error.WorkflowException
com.yworkflow.instance.error.InvalidWorkflowDefinitionException
- All Implemented Interfaces:
Serializable
Exception thrown when a workflow definition is invalid or contains errors.
InvalidWorkflowDefinitionException is used to indicate that a workflow definition failed
validation and cannot be used to create workflow instances.
This exception is typically thrown during workflow definition validation when the definition contains structural errors, missing required elements, invalid references, or other issues that prevent the workflow from being properly executed.
The exception includes a list of ValidationError objects that provide detailed information about what specific validation errors were found in the workflow definition.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidWorkflowDefinitionException(List<ValidationError> validationErrors) Creates a new InvalidWorkflowDefinitionException with the specified validation errors. -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of validation errors that caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidWorkflowDefinitionException
Creates a new InvalidWorkflowDefinitionException with the specified validation errors.- Parameters:
validationErrors- the list of validation errors found in the workflow definition
-
-
Method Details
-
getValidationErrors
Returns the list of validation errors that caused this exception.- Returns:
- the list of validation errors
-