Class ServerHTTPException

All Implemented Interfaces:
Serializable

public class ServerHTTPException extends HTTPException
HTTP-related exception indicating that an error occurred in a server. Status codes for these types of errors are in the 5xx range. The default status code for constructors without a statusCode parameter is 500 Internal Server Error.
Author:
Arjohn Kampman
See Also:
  • Constructor Details

    • ServerHTTPException

      public ServerHTTPException()
      Creates a ServerHTTPException with status code 500 "Internal Server Error".
    • ServerHTTPException

      public ServerHTTPException(String msg)
      Creates a ServerHTTPException with status code 500 "Internal Server Error".
    • ServerHTTPException

      public ServerHTTPException(String msg, Throwable t)
      Creates a ServerHTTPException with status code 500 "Internal Server Error".
    • ServerHTTPException

      public ServerHTTPException(int statusCode)
      Creates a ServerHTTPException with the specified status code. The supplied status code must be in the 5xx range.
      Throws:
      IllegalArgumentException - If statusCode is not in the 5xx range.
    • ServerHTTPException

      public ServerHTTPException(int statusCode, String message)
      Creates a ServerHTTPException with the specified status code. The supplied status code must be in the 5xx range.
      Throws:
      IllegalArgumentException - If statusCode is not in the 5xx range.
    • ServerHTTPException

      public ServerHTTPException(int statusCode, String message, Throwable t)
      Creates a ServerHTTPException with the specified status code. The supplied status code must be in the 5xx range.
      Throws:
      IllegalArgumentException - If statusCode is not in the 5xx range.
    • ServerHTTPException

      public ServerHTTPException(int statusCode, Throwable t)
      Creates a ServerHTTPException with the specified status code. The supplied status code must be in the 5xx range.
      Throws:
      IllegalArgumentException - If statusCode is not in the 5xx range.
  • Method Details