Class BadInvocationException

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

public class BadInvocationException 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 invocation of the client by business logic, e.g. by providing a malformed URL.
See Also:
  • Constructor Details

    • BadInvocationException

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

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

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

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

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

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