org.apache.wicket.settings.def
Class ExceptionSettings

java.lang.Object
  extended by org.apache.wicket.settings.def.ExceptionSettings
All Implemented Interfaces:
IExceptionSettings

public class ExceptionSettings
extends java.lang.Object
implements IExceptionSettings

Author:
Jonathan Locke, Chris Turner, Eelco Hillenius, Juergen Donnerstag, Johan Compagner, Igor Vaynberg (ivaynberg), Martijn Dashorst, James Carman

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.wicket.settings.IExceptionSettings
IExceptionSettings.AjaxErrorStrategy, IExceptionSettings.UnexpectedExceptionDisplay
 
Field Summary
 
Fields inherited from interface org.apache.wicket.settings.IExceptionSettings
SHOW_EXCEPTION_PAGE, SHOW_INTERNAL_ERROR_PAGE, SHOW_NO_EXCEPTION_PAGE
 
Constructor Summary
ExceptionSettings()
           
 
Method Summary
 IExceptionSettings.AjaxErrorStrategy getAjaxErrorHandlingStrategy()
           
 IExceptionSettings.UnexpectedExceptionDisplay getUnexpectedExceptionDisplay()
           
 void setAjaxErrorHandlingStrategy(IExceptionSettings.AjaxErrorStrategy errorHandlingStrategyDuringAjaxRequests)
          Sets strategy used to handle errors during Ajax request processing
 void setUnexpectedExceptionDisplay(IExceptionSettings.UnexpectedExceptionDisplay unexpectedExceptionDisplay)
          The exception display type determines how the framework displays exceptions to you as a developer or user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionSettings

public ExceptionSettings()
Method Detail

getUnexpectedExceptionDisplay

public IExceptionSettings.UnexpectedExceptionDisplay getUnexpectedExceptionDisplay()
Specified by:
getUnexpectedExceptionDisplay in interface IExceptionSettings
Returns:
Returns the unexpectedExceptionDisplay.
See Also:
IRequestCycleSettings.getUnexpectedExceptionDisplay()

setUnexpectedExceptionDisplay

public void setUnexpectedExceptionDisplay(IExceptionSettings.UnexpectedExceptionDisplay unexpectedExceptionDisplay)
Description copied from interface: IExceptionSettings
The exception display type determines how the framework displays exceptions to you as a developer or user.

The default value for exception display type is SHOW_EXCEPTION_PAGE. When this value is set and an unhandled runtime exception is thrown by a page, a redirect to a helpful exception display page will occur.

This is a developer feature, however, and you may want to instead show an internal error page without developer details that allows a user to start over at the application's home page. This can be accomplished by setting the exception display type to SHOW_INTERNAL_ERROR_PAGE.

Finally, if you are having trouble with the exception display pages themselves, you can disable exception displaying entirely with the value SHOW_NO_EXCEPTION_PAGE. This will cause the framework to re-throw any unhandled runtime exceptions after wrapping them in a ServletException wrapper.

Specified by:
setUnexpectedExceptionDisplay in interface IExceptionSettings
Parameters:
unexpectedExceptionDisplay - The unexpectedExceptionDisplay to set.
See Also:
org.apache.wicket.settings.IRequestCycleSettings#setUnexpectedExceptionDisplay(org.apache.wicket.settings.Settings.UnexpectedExceptionDisplay)

getAjaxErrorHandlingStrategy

public IExceptionSettings.AjaxErrorStrategy getAjaxErrorHandlingStrategy()
Specified by:
getAjaxErrorHandlingStrategy in interface IExceptionSettings
Returns:
strategy used to handle errors during Ajax request processing
See Also:
IExceptionSettings.getAjaxErrorHandlingStrategy()

setAjaxErrorHandlingStrategy

public void setAjaxErrorHandlingStrategy(IExceptionSettings.AjaxErrorStrategy errorHandlingStrategyDuringAjaxRequests)
Description copied from interface: IExceptionSettings
Sets strategy used to handle errors during Ajax request processing

Specified by:
setAjaxErrorHandlingStrategy in interface IExceptionSettings
See Also:
IExceptionSettings.setAjaxErrorHandlingStrategy(org.apache.wicket.settings.IExceptionSettings.AjaxErrorStrategy)


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.