Class BadResponseException

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

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:
Serialized Form
  • Constructor Details

    • BadResponseException

      public BadResponseException​(String aMessage, String aErrorCode)
      Instantiates a new bad response exception.
      Parameters:
      aMessage - the message
      aErrorCode - the error code
    • BadResponseException

      public BadResponseException​(String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new bad response exception.
      Parameters:
      aMessage - the message
      aCause - the cause
      aErrorCode - the error code
    • BadResponseException

      public BadResponseException​(String message, Throwable cause)
      Instantiates a new bad response exception.
      Parameters:
      message - the message
      cause - the cause
    • BadResponseException

      public BadResponseException​(String message)
      Instantiates a new bad response exception.
      Parameters:
      message - the message
    • BadResponseException

      public BadResponseException​(Throwable aCause, String aErrorCode)
      Instantiates a new bad response exception.
      Parameters:
      aCause - the cause
      aErrorCode - the error code
    • BadResponseException

      public BadResponseException​(Throwable cause)
      Instantiates a new bad response exception.
      Parameters:
      cause - the cause