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
>
>
>