public class HttpException extends Exception
| Constructor and Description |
|---|
HttpException(int status)
Status code only constructor.
|
HttpException(int status,
String message)
Status code an message constructor.
|
HttpException(int status,
String message,
Throwable cause)
All fields constructor.
|
HttpException(int status,
Throwable cause)
Status and cause constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStatus()
The status code to return to the client, must be a valid HTTP status code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic HttpException(int status)
status - The status code to return to the client, must be a valid HTTP status code.public HttpException(int status,
String message)
status - The status code to return to the client, must be a valid HTTP status code.message - The message for this exception.public HttpException(int status,
String message,
Throwable cause)
status - The status code to return to the client, must be a valid HTTP status code.message - The message for this exception.cause - The coause for this exception.public HttpException(int status,
Throwable cause)
status - The status code to return to the client, must be a valid HTTP status code.cause - The coause for this exception.Copyright © 2015–2017 Bridje Framework. All rights reserved.