public static interface ExceptionPassingPipedOutputStream.ICloseExceptionHandler
ExceptionPassingPipedInputStream
but not handled when
someone tries to close this stream. Use
ExceptionPassingPipedOutputStream.setCloseExceptionHandler(ICloseExceptionHandler)
to set this.Modifier and Type | Method and Description |
---|---|
boolean |
handleException(Throwable exception)
Handles the given exception.
|
boolean handleException(Throwable exception) throws IOException
exception
- The exception that has not yet been cleaned up. Will most
probably be either an IOException
or a
RuntimeException
.ExceptionPassingPipedOutputStream.close()
will
consider the exception completely handled. Otherwise, it will
throw it again.IOException
- The method may throw an IOException if needed. It does
not need to re-throw the passed in exception, it could
simply return false to indicate that further processing
is needed.