List of usage examples for org.apache.wicket Application getExceptionSettings
public final ExceptionSettings getExceptionSettings()
From source file:de.alpharogroup.wicket.base.util.application.ApplicationExtensions.java
License:Apache License
/** * Sets the deployment exception settings for the given application. * * @param application//from w w w.jav a2 s. co m * the application * @param applicationRequestCycleListener * the application request cycle listener */ public static void setExceptionSettingsForDeployment(final Application application, final AbstractRequestCycleListener applicationRequestCycleListener) { // show the exception page from us... application.getExceptionSettings() .setUnexpectedExceptionDisplay(ExceptionSettings.SHOW_INTERNAL_ERROR_PAGE); // In case of unhandled exception redirect it to a custom page application.getRequestCycleListeners().add(applicationRequestCycleListener); }
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 w w . j a v a 2 s. 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); }
From source file:org.jaulp.wicket.base.util.application.ApplicationUtils.java
License:Apache License
/** * Sets the deployment exception settings for the given application. * * @param application/*w w w. jav a 2 s . c o m*/ * the application * @param applicationRequestCycleListener * the application request cycle listener */ public static void setExceptionSettingsForDeployment(final Application application, final AbstractRequestCycleListener applicationRequestCycleListener) { // show the exception page from us... application.getExceptionSettings() .setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE); // In case of unhandled exception redirect it to a custom page application.getRequestCycleListeners().add(applicationRequestCycleListener); }
From source file:org.jaulp.wicket.base.util.application.ApplicationUtils.java
License:Apache License
/** * Sets the exception settings for development mode for the given application. * * @param application/*ww w . ja va 2s.c o m*/ * the new exception settings for development */ public static void setExceptionSettingsForDevelopment(final Application application) { // show the exception page from wicket... application.getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_EXCEPTION_PAGE); }