Class FlowValidationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codingapi.springboot.framework.exception.LocaleMessageException
com.codingapi.flow.exception.FlowException
com.codingapi.flow.exception.FlowValidationException
All Implemented Interfaces:
Serializable

public class FlowValidationException extends FlowException
Flow parameter validation exception

Thrown when input parameters to the flow engine do not meet requirements For example: required parameter is empty, parameter format is incorrect, etc.

Since:
1.0.0
See Also:
  • Constructor Details

    • FlowValidationException

      public FlowValidationException(String code, String message)
      Constructor
      Parameters:
      code - error code
      message - error message
  • Method Details

    • nodeRequired

      public static FlowValidationException nodeRequired(String fieldName)
      node field is empty
      Parameters:
      fieldName - node field name
      Returns:
      exception
    • fieldReadOnly

      public static FlowValidationException fieldReadOnly(String fieldName)
      Field is read-only
      Parameters:
      fieldName - field name
      Returns:
      exception
    • fieldNotFound

      public static FlowValidationException fieldNotFound(String fieldName)
      Field not found
      Parameters:
      fieldName - field name
      Returns:
      exception
    • workflowRequired

      public static FlowValidationException workflowRequired(String fieldName)
      workflow field is empty
      Parameters:
      fieldName - node field name
      Returns:
      exception
    • required

      public static FlowValidationException required(String fieldName)
      Required field is empty
      Parameters:
      fieldName - field name
      Returns:
      exception
    • mustBePositive

      public static FlowValidationException mustBePositive(String fieldName)
      Max size must be positive
      Parameters:
      fieldName - field name
      Returns:
      exception