|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 | |
---|---|
protected RenderPageRequestHandler |
createPageRequestHandler(PageProvider pageProvider)
Creates a RenderPageRequestHandler for the target page provided by pageProvider . |
protected Page |
extractCurrentPage()
|
protected boolean |
isProcessingAjaxRequest()
|
IRequestHandler |
map(Exception e)
|
protected IRequestHandler |
mapExpectedExceptions(Exception e,
Application application)
Maps expected exceptions (i.e. |
protected IRequestHandler |
mapUnexpectedExceptions(Exception e,
Application application)
Maps unexpected exceptions to their corresponding IRequestHandler . |
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 IRequestHandler map(Exception e)
map
in interface IExceptionMapper
protected IRequestHandler mapExpectedExceptions(Exception e, Application application)
IRequestHandler
.
e
- the current exceptionapplication
- the current application object
IRequestHandler
for the current exceptionprotected IRequestHandler mapUnexpectedExceptions(Exception e, Application application)
IRequestHandler
.
e
- the current exceptionapplication
- the current application object
IRequestHandler
for the current exceptionprotected RenderPageRequestHandler createPageRequestHandler(PageProvider pageProvider)
RenderPageRequestHandler
for the target page provided by pageProvider
.
Uses RenderPageRequestHandler.RedirectPolicy#NEVER_REDIRECT
policy to preserve the original page's URL
for non-Ajax requests and RenderPageRequestHandler.RedirectPolicy#AUTO_REDIRECT
for AJAX requests.
pageProvider
- the page provider for the target page
protected boolean isProcessingAjaxRequest()
protected Page extractCurrentPage()
null
if it cannot
be extracted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |