commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tharaka De Silva <tharaka...@gmail.com>
Subject NUMBERS-40: Review exception usage in package "o.a.c.numbers.gamma"
Date Wed, 07 Jun 2017 22:00:46 GMT
Hello everyone,

I am new to the ASF community and decided to grab something easy to
attempt. I decided to take a shot at:
https://issues.apache.org/jira/browse/NUMBERS-40.

The rationale of implementing this design would be this:
GammaException is currently a subclass of IllegalArgumentException but the
reason for an argument to be invalid would be because it is arithmetically
impossible hence why it should be an ArithmeticException rather than a
IllegalArgumentException.

What do you guys think?

-- 
Sincerely,

Tharaka De Silva

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message