Class InvalidWorkflowDefinitionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.yworkflow.common.error.WorkflowException
com.yworkflow.definition.model.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.
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