On Thu, Jul 19, 2012 at 7:49 AM, Lenny Primak <lpri...@hope.nyc.ny.us> wrote:
> Tynamo has a wonderful module called tapestry-exception page.
> It's created just for this purpose. Tynamo.org.

And in Tapestry 5.4, tapestry-exceptionpage is built-in. If the
handling is specific to a particular page, I'd use onException. If the
handling is the same for all exceptions of certain type regardless of
the page, then tapestry-exceptionpage.

Kalle


> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to