Interface Closer.Suppressor

Enclosing class:
Closer

static interface Closer.Suppressor
Suppression strategy interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    suppress(Closeable closeable, Throwable thrown, Throwable suppressed)
    Suppresses the given exception (suppressed) which was thrown when attempting to close the given closeable.
  • Method Details

    • suppress

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