Hi.

Le mer. 19 juin 2019 à 18:39, Alex Herbert <alex.d.herb...@gmail.com> a écrit :
>
> On 19/06/2019 17:33, Ben Nguyen wrote:
> > Hello,
> > Regarding the use of exceptions for the regression module; should I simply 
> > try to port over all required exceptions straight from 
> > “apache.commons.math.exception” into it’s own exception package inside 
> > “regression.util.exception” perhaps customizing them to regression’s 
> > specific use cases as well….? Or will there be a full port of all 
> > exceptions for all modules to use…. though I do see one custom exception in 
> > “commons.distribution” so maybe not the latter?
> >
> > Thank you for your reply,
> > Cheers,
> > -Ben Nguyen
> >
> >
>
> Math used checked exceptions.

That was a long time ago.
All are unchecked since v3.0.

Gilles

>
> I think the idea is to move to unchecked exceptions. In most cases this
> should be for illegal arguments and this is why the distribution module
> throws a special case of IllegalArgumentException. It is there to make
> formatting of messages easy.
>
> What other types of exceptions are you expecting that cannot be
> satisfied by?
>
> - IllegalStateException
>
> - ArithmeticException
>
> - Possibly others from the standard Java runtime exceptions
>
> Alex
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to