|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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
public final class AbortWithHttpErrorCodeException
Causes Wicket to abort processing and set the specified HTTP error code, with the provided message if specified.
Constructor Summary | |
---|---|
AbortWithHttpErrorCodeException(int errorCode)
Constructor |
|
AbortWithHttpErrorCodeException(int errorCode,
String message)
Constructor |
Method Summary | |
---|---|
int |
getErrorCode()
Gets the error code. |
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 |
---|
public AbortWithHttpErrorCodeException(int errorCode, String message)
errorCode
- the servlet error code; use one of the
HttpServletResponse
constantsmessage
- the optional message to send to the clientHttpServletResponse
public AbortWithHttpErrorCodeException(int errorCode)
errorCode
- the servlet error code; use one of the
HttpServletResponse
constantsHttpServletResponse
Method Detail |
---|
public int getErrorCode()
HttpServletResponse
public String getMessage()
getMessage
in class Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |