public class HttpException
extends java.lang.Exception| Constructor and Description |
|---|
HttpException(int statusCode)Create a new HTTP exception |
HttpException(int statusCode, java.lang.String statusMessage)Create a new HTTP exception |
HttpException(int statusCode, java.lang.String statusMessage, boolean enableSuppression, boolean writableStackTrace)Create a new HTTP exception with the specified status code, status message, suppression enabled or disabled, and writable stack trace enabled or disabled. |
| Modifier and Type | Method and Description |
|---|---|
int | getStatusCode() |
java.lang.String | getStatusMessage() |
public HttpException(int statusCode)
statusCode - the HTTP status codepublic HttpException(int statusCode,
java.lang.String statusMessage)statusCode - the HTTP status codestatusMessage - the status message (may be null)public HttpException(int statusCode,
java.lang.String statusMessage,
boolean enableSuppression,
boolean writableStackTrace)statusCode - the HTTP status codestatusMessage - the status message (may be null)enableSuppression - whether or not suppression is enabled or disabledwritableStackTrace - whether or not the stack trace should be writable