ejb@glassfish.java.net

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

From: Cheng Fang <Cheng.Fang_at_Sun.COM>
Date: Mon, 27 Mar 2006 10:19:33 -0500 (EST)

Ken,

Thanks for explaining this. I didn't notice they were created at
different versions.

-- Cheng

On Mon, 27 Mar 2006, Kenneth Saks wrote:

> 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
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ejb-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: ejb-help_at_glassfish.dev.java.net
>
>