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
|
fillInStackTrace, getRemoveScheduled, getReplacementRequestHandler, isRemoveAll
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AbortWithHttpErrorCodeException(int errorCode, String message)
errorCode
- the servlet error code; use one of the
HttpServletResponse
constantsmessage
- the optional message to send to the clientHttpServletResponse
public AbortWithHttpErrorCodeException(int errorCode)
errorCode
- the servlet error code; use one of the
HttpServletResponse
constantsHttpServletResponse
public int getErrorCode()
HttpServletResponse
public String getMessage()
getMessage
in class Throwable
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.