throw restartresponseexception with your error page
On 8/27/08, m_salman <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> In my subclass of WebSession the constructor has to call a method that
> throws an exception. As you know the WebApplication calls the constructor
> of the WebSession.
>
>
> public UserSession(Request request)
> {
> super(request);
> try
> {
> user = Cache.getInstance().getAnonymousUser();
> }
> catch (ApplicationException e)
> {
> // What should I do here????
> }
> }
>
>
>
> What I would like to know is what is the best way to handle an exception in
> these classes without swallowing it. I don't want to just log the
> exception. Is there a way to show an error page? I don't see any
> setResponsePage method.
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/Handling-Exceptions-in-WebSession-or-WebApplication-tp19175475p19175475.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]