no, for page expired error there is no exception it goes straight to the page

-igor

On Mon, Feb 2, 2009 at 9:13 AM, Steve Swinsburg
<s.swinsb...@lancaster.ac.uk> wrote:
> thanks igor. does that work for the other types of errors like
> SessionExpired etc? Not sure if I need to capture that one yet though, but I
> will need to redirect with a page ref (url).
>
>
> cheers,
> Steve
>
>
>
>
>
>
> On 2 Feb 2009, at 17:05, Igor Vaynberg wrote:
>
>> on requestcycle.onruntimeexception you can redirect to your error page
>> passing in the exception.
>>
>> -igor
>>
>> On Mon, Feb 2, 2009 at 9:03 AM, Steve Swinsburg
>> <s.swinsb...@lancaster.ac.uk> wrote:
>>>
>>> Hi all,
>>> I have specified some pages that I would like rendered in place of the
>>> Wicket exception pages, in deployment mode, like so:
>>> /* if Session expires, show this error instead */
>>>
>>> getApplicationSettings().setPageExpiredErrorPage(SessionExpiredPage.class);
>>>
>>> /* if internal error occurs, show this page instead */
>>> getApplicationSettings().setInternalErrorPage(InternalErrorPage.class);
>>> I'm not sure how to get the actual class, cause, stacktrace etc passed
>>> into
>>> the pages though. I'd like to capture it because we have a standardised
>>> way
>>> of presenting the error to the user (and it needs to be emailed etc).
>>>
>>> cheers,
>>> Steve
>>> ---
>>> Steve Swinsburg
>>> Portal Systems Developer
>>> Centre for e-Science
>>> Lancaster University
>>> Lancaster
>>> LA1 4YT
>>> email: s.swinsb...@lancaster.ac.uk
>>> phone: +44 (0) 1524 594870
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to