Possible Duplicate:
JDK 1.7 Throwable `addSuppressed()` method
So Java has a method in the Throwable
public final void addSuppressed(Throwable exception)
And this is what it does:
Appends the specified exception to the exceptions that were suppressed
in order to deliver this exception. This method is thread-safe and
typically called (automatically and implicitly) by the
try-with-resources statement.
..i’m puzzled at this , what is “specified exception to the exceptions that were suppressed
in order to deliver this exception.” ?
There is a pretty good explanation in the docs: Throwable