static final class Closer.SuppressingSuppressor extends java.lang.Object implements Closer.Suppressor
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.reflect.Method |
addSuppressed |
(package private) static Closer.SuppressingSuppressor |
INSTANCE |
Constructor and Description |
---|
SuppressingSuppressor() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.reflect.Method |
addSuppressedMethodOrNull() |
(package private) static boolean |
isAvailable() |
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. |
static final Closer.SuppressingSuppressor INSTANCE
static final java.lang.reflect.Method addSuppressed
static boolean isAvailable()
private static java.lang.reflect.Method addSuppressedMethodOrNull()
public void suppress(java.io.Closeable closeable, java.lang.Throwable thrown, java.lang.Throwable suppressed)
Closer.Suppressor
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.suppress
in interface Closer.Suppressor