org.apache.wicket.request.http.flow
Class AbortWithHttpErrorCodeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.wicket.request.RequestHandlerStack.ReplaceHandlerException
                  extended by org.apache.wicket.request.flow.ResetResponseException
                      extended by 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

Constructor Summary
AbortWithHttpErrorCodeException(int errorCode, java.lang.String message)
          Construct.
 
Method Summary
 int getErrorCode()
          Gets the error code.
 java.lang.String getMessage()
          Gets the error message
 
Methods inherited from class org.apache.wicket.request.RequestHandlerStack.ReplaceHandlerException
fillInStackTrace
 
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
 

Constructor Detail

AbortWithHttpErrorCodeException

public AbortWithHttpErrorCodeException(int errorCode,
                                       java.lang.String message)
Construct.

Parameters:
errorCode - the servlet error code; use one of the HttpServletResponse constants
message - the optional message to send to the client
See Also:
HttpServletResponse
Method Detail

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.