Hi,

I'm trying to use onException to catch exceptions, when I throw an exception
from onActivate, onException can catch it, but if it is thrown from
getEntries which is a property accessed from the .tml, onException can't
catch it, t5's ExceptionReport got it, any idea why I can't catch this
exception in the onException?

Thanks,

        
        // this can not be catched
        public List<VideoEntry> getEntries() throws Throwable {
        throw new Exception("aaa");   
    }

        // this can be catched
    Object onActivate(String code) throws Throwable {
                throw new Exception("bbb");
    }

        Object onException(Throwable cause) {
        return PageNotFound.class;
    }
-- 
View this message in context: 
http://www.nabble.com/t5%3A-catching-exception-in-onException-tp22523406p22523406.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

Reply via email to