Class BadResponseException

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

public class BadResponseException extends HttpResponseException
Proprietary code and only used inside a REFCODES.ORG client not trespassing any networking border (the error is generated by the client for the client locally). This code is used when a client signals a bad response being received by a server, e.g. the response cannot be processed by the client and does not meet the client's expectations.
See Also:
  • Constructor Details

    • BadResponseException

      public BadResponseException(String aMessage, String aErrorCode)
      Instantiates a new according exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • BadResponseException

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

      public BadResponseException(String aMessage, Throwable aCause)
      Instantiates a new according exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • BadResponseException

      public BadResponseException(String aMessage)
      Instantiates a new according exception.
      Parameters:
      aMessage - The aMessage describing this exception.
    • BadResponseException

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

      public BadResponseException(Throwable aCause)
      Instantiates a new according exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.
    • BadResponseException

      public BadResponseException(String aMessage, Url aUrl, String aErrorCode)
      Instantiates a new according exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aUrl - The URL involved in this exception.
      aErrorCode - The error code identifying this exception.
    • BadResponseException

      public BadResponseException(String aMessage, Url aUrl, Throwable aCause, String aErrorCode)
      Instantiates a new according exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aUrl - The URL involved in this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • BadResponseException

      public BadResponseException(String aMessage, Url aUrl, Throwable aCause)
      Instantiates a new according exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aUrl - The URL involved in this exception.
      aCause - The Throwable (Exception) causing this exception.
    • BadResponseException

      public BadResponseException(String aMessage, Url aUrl)
      Instantiates a new according exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aUrl - The URL involved in this exception.
    • BadResponseException

      public BadResponseException(Url aUrl, Throwable aCause, String aErrorCode)
      Instantiates a new according exception.
      Parameters:
      aUrl - The URL involved in this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • BadResponseException

      public BadResponseException(Url aUrl, Throwable aCause)
      Instantiates a new according exception.
      Parameters:
      aUrl - The URL involved in this exception.
      aCause - The Throwable (Exception) causing this exception.