Class HttpResponseException

All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.StatusCodeAccessor<HttpStatusCode>
Direct Known Subclasses:
BadInvocationException, BadResponseException

public class HttpResponseException extends HttpStatusException
Thrown by a HTTP-Response handling system in case of some unexpected response.
See Also:
  • Constructor Details

    • HttpResponseException

      public HttpResponseException(HttpStatusCode aStatusCode, String aMessage, String aErrorCode)
      Instantiates a new http response exception.
      Parameters:
      aStatusCode - the status code
      aMessage - The aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • HttpResponseException

      public HttpResponseException(HttpStatusCode aStatusCode, String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new http response exception.
      Parameters:
      aStatusCode - the status code
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • HttpResponseException

      public HttpResponseException(HttpStatusCode aStatusCode, String aMessage, Throwable aCause)
      Instantiates a new http response exception.
      Parameters:
      aStatusCode - the status code
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • HttpResponseException

      public HttpResponseException(HttpStatusCode aStatusCode, String aMessage)
      Instantiates a new http response exception.
      Parameters:
      aStatusCode - the status code
      aMessage - The aMessage describing this exception.
    • HttpResponseException

      public HttpResponseException(HttpStatusCode aStatusCode, Throwable aCause, String aErrorCode)
      Instantiates a new http response exception.
      Parameters:
      aStatusCode - the status code
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • HttpResponseException

      public HttpResponseException(HttpStatusCode aStatusCode, Throwable aCause)
      Instantiates a new http response exception.
      Parameters:
      aStatusCode - the status code
      aCause - The Throwable (Exception) causing this exception.