|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwicket.request.compound.DefaultExceptionResponseStrategy
public class DefaultExceptionResponseStrategy
Default implementation of
IExceptionResponseStrategy. Depending on the
setting it returns a (pluggable) exception page or a blank page, and it
passes the exception through to the current request cycle by calling
RequestCycle.onRuntimeException(Page, RuntimeException).
| Constructor Summary | |
|---|---|
DefaultExceptionResponseStrategy()
Construct. |
|
| Method Summary | |
|---|---|
protected Page |
onRuntimeException(Page page,
java.lang.RuntimeException e)
This method is called when a runtime exception is thrown, just before the actual handling of the runtime exception. |
void |
respond(RequestCycle requestCycle,
java.lang.RuntimeException e)
Whenever a unhandled exception is encountered during the processing of a request cycle, this method is called to respond to the request in a proper way. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultExceptionResponseStrategy()
| Method Detail |
|---|
public final void respond(RequestCycle requestCycle,
java.lang.RuntimeException e)
IExceptionResponseStrategy
respond in interface IExceptionResponseStrategyrequestCycle - the current request cyclee - an uncaught exceptionIExceptionResponseStrategy.respond(wicket.RequestCycle,
java.lang.RuntimeException)
protected Page onRuntimeException(Page page,
java.lang.RuntimeException e)
RequestCycle.onRuntimeException(Page, RuntimeException). Note
that if you override this method or provide a whole new implementation of
IExceptionResponseStrategy alltogether,
RequestCycle.onRuntimeException(Page, RuntimeException) will not
be supported.
page - Any page context where the exception was throwne - The exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||