Class LLHTTPErrorStatusException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.looseleaf.server.internal.LLHTTPErrorStatusException
All Implemented Interfaces:
Serializable

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

    • LLHTTPErrorStatusException

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

      public LLHTTPErrorStatusException(int inStatusCode, String 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
    • LLHTTPErrorStatusException

      public LLHTTPErrorStatusException(int inStatusCode, String 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 String errorCode()
      Returns:
      The error code