I came across this change in RequestCycle.step() while getting the most
recent changes:

        // probably our last chance the exception can be logged.
        // Note that a PageExpiredException should not be logged, because
        // it's not an internal error
        if (e instanceof PageExpiredException)
        {
                logRuntimeException(e);
        }

Either the code is wrong or the comment. The comment on
RequestCycle.logRuntimeException() suggests the code is wrong:

        /**
         * Called when an unrecoverable runtime exception during request cycle
handling occured, which
         * will result in displaying a user facing error page. Clients can 
override
this method in case
         * they want to customize logging. NOT called for
         * [EMAIL PROTECTED] PageExpiredException page expired exceptions}...

But the same change has also been made in WebRequestCycle.redirectTo():

        if (ex instanceof PageExpiredException)
        {
                logRuntimeException(ex);
        }

Could this be a bug ? Or should the comment be adjusted ?

Jan
-- 
View this message in context: 
http://www.nabble.com/PageExpiredException-should-%28not%29-be-logged---tf4372625.html#a12463090
Sent from the Wicket - Dev mailing list archive at Nabble.com.

Reply via email to