RE: Best way to set up a handler for 'Internal error'
>hi, >add your IRequestCycleListener which onexception checks if it's the >exception you want to >log/mail ,if it's then do so. Ah! That looks like what I need! Thanks. > >On Wed, Dec 26, 2012 at 3:45 AM, Chris Colman > wrote: >> When running in production mode and an error occurs Wicket will display >> 'Internal error/return to home page'. >> >> What is the best place to put in a hook or a listener to be activated >> when this occurs so that we can have an email sent to an admin or log >> extra details etc., >> >> Yours sincerely, >> >> Chris Colman > > > >-- >regards, > >Vineet Semwal > >- >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
Re: Best way to set up a handler for 'Internal error'
hi, add your IRequestCycleListener which onexception checks if it's the exception you want to log/mail ,if it's then do so. On Wed, Dec 26, 2012 at 3:45 AM, Chris Colman wrote: > When running in production mode and an error occurs Wicket will display > 'Internal error/return to home page'. > > What is the best place to put in a hook or a listener to be activated > when this occurs so that we can have an email sent to an admin or log > extra details etc., > > Yours sincerely, > > Chris Colman -- regards, Vineet Semwal - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Best way to set up a handler for 'Internal error'
Does Application getExceptionSettings().setUnexpectedExceptionDisplay( ); help? Look at DefaultExceptionMapper (which I think you can also set in Application.init() ) N On Tue, Dec 25, 2012 at 3:15 PM, Chris Colman wrote: > When running in production mode and an error occurs Wicket will display > 'Internal error/return to home page'. > > What is the best place to put in a hook or a listener to be activated > when this occurs so that we can have an email sent to an admin or log > extra details etc., > > Yours sincerely, > > Chris Colman >