Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

tynamo exception handling doesn't work in setupRender?

Paul Stanton

2010-08-31

Replies: Find Java Web Hosting

Author LoginPost Reply
I'm using the Tynamo tapestry-exception module, and for the most part it
works great, however I've noticed that it doesn't seem to work for
exceptions thrown during a 'setupRender' event handler. These exceptions
are wrapped in a 'RenderQueueException' and load in the normal tapestry
exception page.

Is this a known issue within Tynamo? Should it work/be fixed?

Regards, Paul.

public class AppModule
{
  public void contributeExceptionHandler(MappedConfiguration<Class<?>,
Class<?>> configuration)
  {
    configuration.add(MyException.class, MyExceptionPage.class);
  }
}

public class Start
{
  public void onActivate()
  {
    if (new Random().nextBoolean())
       throw new MyException("onActivate");
  }

  public void setupRender()
  {
    if (new Random().nextBoolean())
       throw new MyException("setupRender");
  }
}

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.