Class FlowPermissionException

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.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
  • Method Details

    • accessDenied

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