|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.settings.def.ExceptionSettings
public class ExceptionSettings
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.wicket.settings.IExceptionSettings |
|---|
IExceptionSettings.AjaxErrorStrategy, IExceptionSettings.ThreadDumpStrategy, 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.ThreadDumpStrategy |
getThreadDumpStrategy()
|
IExceptionSettings.UnexpectedExceptionDisplay |
getUnexpectedExceptionDisplay()
|
void |
setAjaxErrorHandlingStrategy(IExceptionSettings.AjaxErrorStrategy errorHandlingStrategyDuringAjaxRequests)
Sets strategy used to handle errors during Ajax request processing |
void |
setThreadDumpStrategy(IExceptionSettings.ThreadDumpStrategy strategy)
Sets the strategy to use for dumping stack traces of live threads in the JVM. |
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 |
|---|
public ExceptionSettings()
| Method Detail |
|---|
public IExceptionSettings.UnexpectedExceptionDisplay getUnexpectedExceptionDisplay()
getUnexpectedExceptionDisplay in interface IExceptionSettingsIRequestCycleSettings.getUnexpectedExceptionDisplay()public void setUnexpectedExceptionDisplay(IExceptionSettings.UnexpectedExceptionDisplay unexpectedExceptionDisplay)
IExceptionSettingsThe 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.
setUnexpectedExceptionDisplay in interface IExceptionSettingsunexpectedExceptionDisplay - The unexpectedExceptionDisplay to set.org.apache.wicket.settings.IRequestCycleSettings#setUnexpectedExceptionDisplay(org.apache.wicket.settings.Settings.UnexpectedExceptionDisplay)public IExceptionSettings.AjaxErrorStrategy getAjaxErrorHandlingStrategy()
getAjaxErrorHandlingStrategy in interface IExceptionSettingsIExceptionSettings.getAjaxErrorHandlingStrategy()public void setAjaxErrorHandlingStrategy(IExceptionSettings.AjaxErrorStrategy errorHandlingStrategyDuringAjaxRequests)
IExceptionSettings
setAjaxErrorHandlingStrategy in interface IExceptionSettingsIExceptionSettings.setAjaxErrorHandlingStrategy(org.apache.wicket.settings.IExceptionSettings.AjaxErrorStrategy)public void setThreadDumpStrategy(IExceptionSettings.ThreadDumpStrategy strategy)
IExceptionSettings
setThreadDumpStrategy in interface IExceptionSettingspublic IExceptionSettings.ThreadDumpStrategy getThreadDumpStrategy()
getThreadDumpStrategy in interface IExceptionSettings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||