A generic internal error page should be shown when an unexpected exception is thrown in wicket6.x or wicket7.7?

protected void init() {
        getApplicationSettings().setInternalErrorPage(BnafInternalErrorPage.class);
        getApplicationSettings().setPageExpiredErrorPage(BnafAccessDeniedErrorPage.class);
        getApplicationSettings().setAccessDeniedPage(BnafAccessDeniedErrorPage.class);
        getExceptionSettings().setInternalErrorPage(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);

In above code i got error at IExceptionSettings.

Upvotes: 0

Views: 238

Answers (1)

soorapadman
soorapadman

Reputation: 4509

IExceptionSettings removed in wicket 7

So you can replace this below line.

getExceptionSettings().setInternalErrorPage(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);

to

getExceptionSettings().setUnexpectedExceptionDisplay(ExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);

To know more details check here https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+7.0#MigrationtoWicket7.0-AllIXyzSettingsareremovedWICKET-5410

Upvotes: 1

Related Questions