> -----Original Message-----
> From: luc.maison...@free.fr [mailto:luc.maison...@free.fr]
> Sent: Tuesday, February 01, 2011 08:52
> To: Commons Developers List
> Subject: Re: [all][math] Help wanted with exceptions API design
> 
> 
<...>
> > > The currently defined exceptions in [math] can be found in the
> > > top-level package and .exceptions.  Those in the top-level have at
> > > this point been deprecated.

Don't package your exceptions in a package called ".exceptions". That is very 
odd. The exception should be defined where they are used.

As I and others have suggested: reuse existing stock exceptions. Only create 
exceptions classes if you must. 

If you consider creating an exception, especially in a hierarchy, think: why 
would I want to CATCH this exception as opposed to a superclass?

Gary

> > >
> > > Thanks!
> > >
> > > Phil
> > >
> > > [1] http://markmail.org/message/csgdloie6uv33yua
> > > [2] http://commons.apache.org/math/developers.html
> > > [3] https://issues.apache.org/jira/browse/MATH-487
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> > > For additional commands, e-mail: dev-h...@commons.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> > For additional commands, e-mail: dev-h...@commons.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to