Class AuthException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.cedarpolicy.model.exception.AuthException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadRequestException, InternalException, InvalidEscapeSequenceException

public class AuthException extends Exception
Exception thrown when errors are encountered that prevent communication with the authorization engine. Note that this does not include errors that are generated by the authorization engine while evaluating a request. These errors are included in the errors field of the AuthorizationResponse.
See Also:
  • Field Details

    • message

      public final Optional<String> message
      Generated Error Message.
    • cause

      public final Optional<Throwable> cause
      Exception that caused the failure.
  • Constructor Details

    • AuthException

      public AuthException(String message)
      Exceptions encountered during authorization.
      Parameters:
      message - Error Message
    • AuthException

      public AuthException(String message, Throwable cause)
      Constructor to build an exception with both a Throwable cause and an error message.
      Parameters:
      message - useful debugging message
      cause - parent exception that caused this exception
    • AuthException

      public AuthException(Throwable cause)
      Constructor that just takes the Throwable cause.
      Parameters:
      cause - parent exception that caused this exception
  • Method Details