Re: Intercepting Exceptions in Tapestry Listeners

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Intercepting Exceptions in Tapestry Listeners

Kent Tong
Schulte Marcus <marcus.schulte <at> bmw.ch> writes:

> Still, the way you have to unwrap your exception from the
> ApplicationRuntimeException is somewhat unsatisfactory. It's just too tight
> coupling to framework-internals.

I suppose your user exceptions are checked exceptions? If
no, just override the activateExceptionPage() in BaseEngine.
If they're checked exceptions, why not create a Tapestry
listener wrapping your exception-throwing listener? Then
the Tapestry listener can catch the exceptions and display
the errors.



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]