Class BadInvocationException

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

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 according exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • BadInvocationException

      public BadInvocationException(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.
    • BadInvocationException

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

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

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

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

      public BadInvocationException(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.
    • BadInvocationException

      public BadInvocationException(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.
    • BadInvocationException

      public BadInvocationException(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.
    • BadInvocationException

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

      public BadInvocationException(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.
    • BadInvocationException

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