Package com.google.common.io
Interface Closer.Suppressor
-
- All Known Implementing Classes:
Closer.LoggingSuppressor,Closer.SuppressingSuppressor
- Enclosing class:
- Closer
static interface Closer.SuppressorSuppression strategy interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsuppress(java.io.Closeable closeable, java.lang.Throwable thrown, java.lang.Throwable suppressed)Suppresses the given exception (suppressed) which was thrown when attempting to close the given closeable.
-
-
-
Method Detail
-
suppress
void suppress(java.io.Closeable closeable, java.lang.Throwable thrown, java.lang.Throwable suppressed)Suppresses the given exception (suppressed) which was thrown when attempting to close the given closeable.thrownis the exception that is actually being thrown from the method. Implementations of this method should not throw under any circumstances.
-
-