|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.DefaultExceptionMapper
public class DefaultExceptionMapper
If an exception is thrown when a page is being rendered this mapper will decide which error page
to show depending on the exception type and application
configuration
Constructor Summary | |
---|---|
DefaultExceptionMapper()
|
Method Summary | |
---|---|
RenderPageRequestHandler.RedirectPolicy |
getRedirectPolicy()
get the redirect policy in case of error (controls if the URL changes in case of displaying an error) |
IRequestHandler |
map(java.lang.Exception e)
|
void |
setRedirectPolicy(RenderPageRequestHandler.RedirectPolicy redirectPolicy)
set the redirect policy in case of error (you can control if the URL changes in case of displaying an error) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultExceptionMapper()
Method Detail |
---|
public RenderPageRequestHandler.RedirectPolicy getRedirectPolicy()
public void setRedirectPolicy(RenderPageRequestHandler.RedirectPolicy redirectPolicy)
redirectPolicy
- redirection policypublic IRequestHandler map(java.lang.Exception e)
map
in interface IExceptionMapper
IRequestHandler
for given exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |