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]