Hi,

I have this page, and when I render it...

public class Whoops {
        void setupRender() {
                throw new RuntimeException("Whoops!");
        }

        void onException(Throwable t) {
                System.err.println("Hello!!!");
        }       
}

...it doesn't say "Hello!!!"? Is onException() not called during
RenderPhase events? And if not, why not!? (It would seem a little
inconsistent.)

I wish to throw a couple of bespoke exceptions during onActivate() and
setupRender() and have then caught and handled by a Mixin that I apply
to every page. How else may I accomplish this? The exceptions relate
to IllegalContexts / StaleSessions and the like, so they are real
problems encountered during the render phase.

Cheers,

Steve.

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

Reply via email to