ejb@glassfish.java.net

Re: why 2 constructors in EJBAccessException and 3 in AccessLocalException?

From: Kenneth Saks <Kenneth.Saks_at_Sun.COM>
Date: Mon, 27 Mar 2006 10:17:41 -0500

Cheng Fang wrote:

>Just curious and it's no big deal, why EJBAccessException has 2
>constructors:
>EJBAccessException()
>EJBAccessException(String),
>
> while
>
>AccessLocalException has 3:
>AccessLocalException()
>AccessLocalException(String)
>AccessLocalException(String message, Exception ex)
>
>It seems reasonable to also add (String, Exception/Throwable) to
>EJBAccessException.
>
AccessLocalException is one of the original EJB exceptions. It was
added before initCause() was added to java.lang.Throwable. initCause
is the preferable way to attached chained exception information to a new
exception.

 --ken

>
>-- Cheng
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>
>
>