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:
- java.io.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
Methods inherited from class java.lang.Throwable |
getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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,
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
Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.