Class BasicAuthRequiredRuntimeException

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

public class BasicAuthRequiredRuntimeException 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

    • BasicAuthRequiredRuntimeException

      public BasicAuthRequiredRuntimeException(String aMessage, String aErrorCode)
      Instantiates a new basic auth required runtime exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • BasicAuthRequiredRuntimeException

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

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

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

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

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