Hmm... Suppressed Exceptions are Throwables[]

Paul Benedict pbenedict at
Wed Sep 29 18:44:03 PDT 2010

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();


More information about the coin-dev mailing list