org.apache.wicket.request.http.flow
Class AbortWithHttpErrorCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.wicket.request.RequestHandlerStack.ReplaceHandlerException
org.apache.wicket.request.flow.ResetResponseException
org.apache.wicket.request.http.flow.AbortWithHttpErrorCodeException
- All Implemented Interfaces:
- Serializable
public final class AbortWithHttpErrorCodeException
- extends ResetResponseException
Causes Wicket to abort processing and set the specified HTTP error code, with the provided
message if specified.
- Author:
- igor.vaynberg
- See Also:
- Serialized Form
AbortWithHttpErrorCodeException
public AbortWithHttpErrorCodeException(int errorCode,
String message)
- Construct.
- Parameters:
errorCode
- the servlet error code; use one of the
HttpServletResponse
constants- See Also:
HttpServletResponse
getErrorCode
public int getErrorCode()
- Gets the error code.
- Returns:
- errorCode
- See Also:
HttpServletResponse
getMessage
public String getMessage()
- Gets the error message
- Overrides:
getMessage
in class Throwable
- Returns:
- error message
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.