public final class AbortWithHttpErrorCodeException extends ResetResponseException
| Constructor and Description |
|---|
AbortWithHttpErrorCodeException(int errorCode)
Constructor
|
AbortWithHttpErrorCodeException(int errorCode,
String message)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Gets the error code.
|
String |
getMessage()
Gets the error message
|
fillInStackTraceaddSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic AbortWithHttpErrorCodeException(int errorCode,
String message)
errorCode - the servlet error code; use one of the
HttpServletResponse constantsmessage - the optional message to send to the clientHttpServletResponsepublic AbortWithHttpErrorCodeException(int errorCode)
errorCode - the servlet error code; use one of the
HttpServletResponse constantsHttpServletResponsepublic int getErrorCode()
HttpServletResponsepublic String getMessage()
getMessage in class ThrowableCopyright © 2006–2014 Apache Software Foundation. All rights reserved.