org.apache.wicket.protocol.http.servlet
Class AbortWithWebErrorCodeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.wicket.AbortException
org.apache.wicket.AbstractRestartResponseException
org.apache.wicket.protocol.http.servlet.AbortWithWebErrorCodeException
- All Implemented Interfaces:
- Serializable
public final class AbortWithWebErrorCodeException
- extends AbstractRestartResponseException
Causes Wicket to abort processing and set the specified HTTP error code, with the provided
message if provided.
- Author:
- Eelco Hillenius
- See Also:
AbortException
,
WebErrorCodeResponseTarget
,
Serialized Form
AbortWithWebErrorCodeException
public AbortWithWebErrorCodeException(int errorCode)
- Construct.
- Parameters:
errorCode
- the servlet error code; use one of the
HttpServletResponse
constants- See Also:
HttpServletResponse
AbortWithWebErrorCodeException
public AbortWithWebErrorCodeException(int errorCode,
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
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.