Class IdHTTPErrorStatusException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.idstore.server.http.IdHTTPErrorStatusException
All Implemented Interfaces:
Serializable

public final class IdHTTPErrorStatusException extends Exception
An exception with an associated error code and HTTP status code.
See Also:
  • Constructor Details

    • IdHTTPErrorStatusException

      public IdHTTPErrorStatusException(int inStatusCode, IdErrorCode inErrorCode, String inMessage)
      Construct an exception.
      Parameters:
      inStatusCode - The HTTP status code
      inErrorCode - The error code
      inMessage - The error message
    • IdHTTPErrorStatusException

      public IdHTTPErrorStatusException(int inStatusCode, IdErrorCode inErrorCode, String inMessage, Throwable cause)
      Construct an exception.
      Parameters:
      inStatusCode - The HTTP status code
      inErrorCode - The error code
      inMessage - The error message
      cause - The cause
    • IdHTTPErrorStatusException

      public IdHTTPErrorStatusException(int inStatusCode, IdErrorCode inErrorCode, Throwable cause)
      Construct an exception.
      Parameters:
      inStatusCode - The HTTP status code
      inErrorCode - The error code
      cause - The cause
  • Method Details

    • statusCode

      public int statusCode()
      Returns:
      The HTTP status code
    • errorCode

      public IdErrorCode errorCode()
      Returns:
      The error code