Hmm... Suppressed Exceptions are Throwables[]

Stephen Colebourne scolebourne at joda.org
Thu Sep 30 08:38:47 PDT 2010


Personally, I agree with the reasoning here.
getSecondaryThrowables() or getSecondaryCauses() would work for me.

Stephen


On 29 September 2010 18:44, Paul Benedict <pbenedict at apache.org> wrote:
> I just happened to notice the incongruity of having
> getSuppressedExceptions() not being Exception instances -- but
> Throwables. The return type is correct but the method name is slightly
> misleading. Can I recommend another option? Since Throwable already
> has a notion of a "root cause," turning "suppressed exceptions" into
> "ancillary" or "secondary" causes would be a better inline with
> current documentation.
>
> Throwable[] causes = t.getSecondaryCauses();
>
> Paul
>
>



More information about the coin-dev mailing list