commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <GGreg...@seagullsoftware.com>
Subject RE: [all][math] Help wanted with exceptions API design
Date Tue, 01 Feb 2011 16:12:52 GMT
> -----Original Message-----
> From: luc.maisonobe@free.fr [mailto:luc.maisonobe@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-unsubscribe@commons.apache.org
> > > For additional commands, e-mail: dev-help@commons.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org

Mime
View raw message