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 <[email protected]> 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: [email protected] > phone: +44 (0) 1524 594870 > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
