Example usage for org.apache.wicket.settings ExceptionSettings SHOW_EXCEPTION_PAGE

List of usage examples for org.apache.wicket.settings ExceptionSettings SHOW_EXCEPTION_PAGE

Introduction

In this page you can find the example usage for org.apache.wicket.settings ExceptionSettings SHOW_EXCEPTION_PAGE.

Prototype

UnexpectedExceptionDisplay SHOW_EXCEPTION_PAGE

To view the source code for org.apache.wicket.settings ExceptionSettings SHOW_EXCEPTION_PAGE.

Click Source Link

Document

Indicates that an exception page appropriate to development should be shown when an unexpected exception is thrown.

Usage

From source file:de.alpharogroup.wicket.base.util.application.ApplicationExtensions.java

License:Apache License

/**
 * Sets the exception settings for development mode for the given application.
 *
 * @param application//from   w  ww.ja va2s .  c  om
 *            the new exception settings for development
 */
public static void setExceptionSettingsForDevelopment(final Application application) {
    // show the exception page from wicket...
    application.getExceptionSettings().setUnexpectedExceptionDisplay(ExceptionSettings.SHOW_EXCEPTION_PAGE);
}