Class AuthException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
PermissionDeniedException

public class AuthException extends RestApiException
Caller cannot perform the request operation (HTTP 403 Forbidden).
See Also:
  • Constructor Details

    • AuthException

      public AuthException(String msg)
      Parameters:
      msg - message to return to the client.
    • AuthException

      public AuthException(String msg, Throwable cause)
      Parameters:
      msg - message to return to the client.
      cause - cause of this exception.
  • Method Details

    • setAdvice

      public void setAdvice(String advice)
    • getAdvice

      public Optional<String> getAdvice()
      Advice that the user can follow to acquire authorization to perform the action.

      This may be long-form text with newlines, and may be printed to a terminal, for example in the message stream in response to a push.