Class BasicAuthRequiredException

All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.StatusCodeAccessor<HttpStatusCode>

public class BasicAuthRequiredException extends UnauthorizedException
Thrown in case HTTP basic authorization is required but no required HeaderField.WWW_AUTHENTICATE data was found, e.g. BasicAuthCredentials was null.
See Also:
  • Constructor Details

    • BasicAuthRequiredException

      public BasicAuthRequiredException(String aMessage, String aErrorCode)
      Instantiates a new basic auth required exception.
      Parameters:
      aMessage - the message
      aErrorCode - the error code
    • BasicAuthRequiredException

      public BasicAuthRequiredException(String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new basic auth required exception.
      Parameters:
      aMessage - the message
      aCause - the cause
      aErrorCode - the error code
    • BasicAuthRequiredException

      public BasicAuthRequiredException(String message, Throwable cause)
      Instantiates a new basic auth required exception.
      Parameters:
      message - the message
      cause - the cause
    • BasicAuthRequiredException

      public BasicAuthRequiredException(String message)
      Instantiates a new basic auth required exception.
      Parameters:
      message - the message
    • BasicAuthRequiredException

      public BasicAuthRequiredException(Throwable aCause, String aErrorCode)
      Instantiates a new basic auth required exception.
      Parameters:
      aCause - the cause
      aErrorCode - the error code
    • BasicAuthRequiredException

      public BasicAuthRequiredException(Throwable cause)
      Instantiates a new basic auth required exception.
      Parameters:
      cause - the cause