/** * Re-throws the original exception thrown by this stream. This method first checks whether the * given exception is a {@link TaggedIOException} wrapper created by this decorator, and then * unwraps and throws the original wrapped exception. Returns normally if the exception was not * thrown by this stream. * * @param exception an exception * @throws IOException original exception, if any, thrown by this stream */ public void throwIfCauseOf(final Exception exception) throws IOException { TaggedIOException.throwCauseIfTaggedWith(exception, this.tag); }
/* 23: */ /* 24: */ public void throwIfCauseOf(Exception exception) /* 25: */ throws IOException /* 26: */ { /* 27:102 */ TaggedIOException.throwCauseIfTaggedWith(exception, this.tag); /* 28: */ }
/** * Tests if the given exception was caused by this stream. * * @param exception an exception * @return {@code true} if the exception was thrown by this stream, {@code false} otherwise */ public boolean isCauseOf(final Exception exception) { return TaggedIOException.isTaggedWith(exception, this.tag); }
/* 18: */ /* 19: */ public boolean isCauseOf(Exception exception) /* 20: */ { /* 21: 88 */ return TaggedIOException.isTaggedWith(exception, this.tag); /* 22: */ }