Class Closer.LoggingSuppressor

java.lang.Object
com.google.common.io.Closer.LoggingSuppressor
All Implemented Interfaces:
Closer.Suppressor
Enclosing class:
Closer

static final class Closer.LoggingSuppressor extends Object implements Closer.Suppressor
Suppresses exceptions by logging them.
  • Field Details

  • Constructor Details

    • LoggingSuppressor

      LoggingSuppressor()
  • Method Details

    • suppress

      public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed)
      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 interface Closer.Suppressor