Tynamo has a wonderful module called tapestry-exception page. It's created just for this purpose. Tynamo.org.
On Jul 19, 2012, at 8:53 AM, captain_rhino <graeme.kitc...@axa-travel-insurance.com> wrote: > I have several pages that several methods within them > > public class Page > public void onActivate(EventContext ec){ > //Code > } > > public void onSuccess(){ > //code > } > > void onSelectedFromAButton(){ > //code > } > > In tapestry if any of the code goes wrong within my methods, in Tapestry > what is the best way to intercept any thing that goes wrong and then > redirect the user to for example an error page. > > I do not want to put a try catch in each method and then redirect to my > error page. > > > Thx in advance. > > > > } > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Intercepting-exceptions-errors-in-logic-within-page-objects-tp5714597.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org