[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Justification for "throws Throwable"

timfox do-not-reply at jboss.com
Thu Jul 27 06:03:47 EDT 2006


A few of the older methods in the core are declared as "throws Throwable".

I have been told there was some reason for doing this but that reason seems to have been lost in the mists of time.

Declaring as throws Throwable forces the caller to handle RuntimeExceptions and Errors.

Can anyone shed any light on this?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961225#3961225

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961225



More information about the jboss-dev-forums mailing list