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

public class InvalidWorkflowDefinitionException extends WorkflowException
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 Details

    • InvalidWorkflowDefinitionException

      public InvalidWorkflowDefinitionException(List<ValidationError> validationErrors)
      Creates a new InvalidWorkflowDefinitionException with the specified validation errors.
      Parameters:
      validationErrors - the list of validation errors found in the workflow definition
  • Method Details

    • getValidationErrors

      public List<ValidationError> getValidationErrors()
      Returns the list of validation errors that caused this exception.
      Returns:
      the list of validation errors