Class AccessDeniedException

All Implemented Interfaces:
Serializable, EventStreamJsonMessage

public class AccessDeniedException extends EventStreamOperationError
Thrown when an access denied exception occurs
See Also:
  • Field Details

    • ERROR_CODE

      public static final String ERROR_CODE
      The error code associated with a access denied exception
      See Also:
  • Constructor Details

    • AccessDeniedException

      public AccessDeniedException(String serviceName, String message)
      Message constructor may reveal what operation or resource was denied access or the principal/authN that was rejected Do not overexpose reason or logic for AccessDenied. Prefer internal logging
      Parameters:
      serviceName - The name of the service that caused the exception
      message - The message to associate with the exception
    • AccessDeniedException

      public AccessDeniedException(String serviceName)
      Message constructor may reveal what operation or resource was denied access or the principal/authN that was rejected Do not overexpose reason or logic for AccessDenied. Prefer internal logging
      Parameters:
      serviceName - The name of the service that caused the exception
  • Method Details

    • getApplicationModelType

      public String getApplicationModelType()
      Returns the named model type. May be used for a header.
      Returns:
      The named model type