[jboss-user] [EJB 3.0] - Should unchecked, but declared exceptions get wrapped in EJB
cracru
do-not-reply at jboss.com
Mon Apr 16 17:02:28 EDT 2007
Should unchecked, but declared exceptions get wrapped in EJBException?
The spec is a little vague on the subject.
It would seem logical and beneficial to have any unchecked exception that is explicitly stated in the throws clause of a business method be considered an application exception, and not wrapped in an EJBException.
The current behavior in 4.0.5 seems to be to wrap in an EJBException, all unchecked exceptions thrown that are not directly annotated with @ApplicationException, or are not included in an application-exception deployment element.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037735#4037735
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037735
More information about the jboss-user
mailing list