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:
- java.io.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
Methods inherited from class java.lang.Throwable |
getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbortWithHttpErrorCodeException
public AbortWithHttpErrorCodeException(int errorCode,
java.lang.String message)
- Construct.
- Parameters:
errorCode
- the servlet error code; use one of the
HttpServletResponse
constantsmessage
- the optional message to send to the client- See Also:
HttpServletResponse
getErrorCode
public int getErrorCode()
- Gets the error code.
- Returns:
- errorCode
- See Also:
HttpServletResponse
getMessage
public java.lang.String getMessage()
- Gets the error message
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
- error message
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.