Module org.apache.wicket.request
Class AbortWithHttpErrorCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
org.apache.wicket.request.flow.ResetResponseException
org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException
- All Implemented Interfaces:
Serializable
Causes Wicket to abort processing and set the specified HTTP error code, with the provided
message if specified.
- Author:
- igor.vaynberg
- See Also:
-
Constructor Summary
ConstructorDescriptionAbortWithHttpErrorCodeException
(int errorCode) ConstructorAbortWithHttpErrorCodeException
(int errorCode, String message) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the error code.Gets the error messageMethods inherited from class org.apache.wicket.request.RequestHandlerExecutor.ReplaceHandlerException
fillInStackTrace, getRemoveScheduled, getReplacementRequestHandler
Methods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AbortWithHttpErrorCodeException
Constructor- Parameters:
errorCode
- the servlet error code; use one of theHttpServletResponse
constantsmessage
- the optional message to send to the client- See Also:
-
HttpServletResponse
-
AbortWithHttpErrorCodeException
Constructor- Parameters:
errorCode
- the servlet error code; use one of theHttpServletResponse
constants- See Also:
-
HttpServletResponse
-
-
Method Details
-
getErrorCode
Gets the error code.- Returns:
- errorCode
- See Also:
-
HttpServletResponse
-
getMessage
Gets the error message- Overrides:
getMessage
in classThrowable
- Returns:
- error message
-