Class FlowPermissionException

All Implemented Interfaces:
Serializable

public class FlowPermissionException extends FlowException
Flow permission exception

Thrown when an operator does not have permission to perform the current operation For example: field is read-only and cannot be modified, no permission to operate the flow, etc.

Since:
1.0.0
See Also:
  • Constructor Details

    • FlowPermissionException

      public FlowPermissionException(String code, String message)
      Constructor
      Parameters:
      code - error code
      message - error message
    • FlowPermissionException

      public FlowPermissionException(String code, String message, Throwable cause)
      Constructor
      Parameters:
      code - error code
      message - error message
      cause - cause
  • Method Details

    • fieldReadOnly

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

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

      public static FlowPermissionException accessDenied(String operation)
      Access denied
      Parameters:
      operation - operation name
      Returns:
      exception
    • noPermission

      public static FlowPermissionException noPermission(long operatorId)
      No permission to operate the flow
      Parameters:
      operatorId - operator ID
      Returns:
      exception