org.apache.wicket
Class DefaultExceptionMapper

java.lang.Object
  extended by org.apache.wicket.DefaultExceptionMapper
All Implemented Interfaces:
IExceptionMapper

public class DefaultExceptionMapper
extends java.lang.Object
implements IExceptionMapper

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

DefaultExceptionMapper

public DefaultExceptionMapper()
Method Detail

getRedirectPolicy

public RenderPageRequestHandler.RedirectPolicy getRedirectPolicy()
get the redirect policy in case of error (controls if the URL changes in case of displaying an error)

Returns:
redirect policy

setRedirectPolicy

public 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)

Parameters:
redirectPolicy - redirection policy

map

public IRequestHandler map(java.lang.Exception e)
Specified by:
map in interface IExceptionMapper
Returns:
IRequestHandler for given exception


Copyright © 2004-2010 Apache Software Foundation. All Rights Reserved.