Package com.google.common.io
Class Closer.SuppressingSuppressor
java.lang.Object
com.google.common.io.Closer.SuppressingSuppressor
- All Implemented Interfaces:
Closer.Suppressor
- Enclosing class:
- Closer
Suppresses exceptions by adding them to the exception that will be thrown using JDK7's
addSuppressed(Throwable) mechanism.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
addSuppressed
-
-
Constructor Details
-
SuppressingSuppressor
-
-
Method Details
-
tryCreate
-
suppress
Description copied from interface:Closer.Suppressor
Suppresses the given exception (suppressed
) which was thrown when attempting to close the given closeable.thrown
is the exception that is actually being thrown from the method. Implementations of this method should not throw under any circumstances.- Specified by:
suppress
in interfaceCloser.Suppressor
-