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 aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • BasicAuthRequiredException

      public BasicAuthRequiredException(String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new basic auth required exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • BasicAuthRequiredException

      public BasicAuthRequiredException(String aMessage, Throwable aCause)
      Instantiates a new basic auth required exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • BasicAuthRequiredException

      public BasicAuthRequiredException(String aMessage)
      Instantiates a new basic auth required exception.
      Parameters:
      aMessage - The aMessage describing this exception.
    • BasicAuthRequiredException

      public BasicAuthRequiredException(Throwable aCause, String aErrorCode)
      Instantiates a new basic auth required exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • BasicAuthRequiredException

      public BasicAuthRequiredException(Throwable aCause)
      Instantiates a new basic auth required exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.