|
24 | 24 | import org.apache.commons.io.TaggedIOException; |
25 | 25 |
|
26 | 26 | /** |
27 | | - * A reader decorator that tags potential exceptions so that the |
28 | | - * reader that caused the exception can easily be identified. This is |
29 | | - * done by using the {@link TaggedIOException} class to wrap all thrown |
30 | | - * {@link IOException}s. See below for an example of using this class. |
| 27 | + * A reader decorator that tags potential exceptions so that the reader that caused the exception can easily be |
| 28 | + * identified. This is done by using the {@link TaggedIOException} class to wrap all thrown {@link IOException}s. See |
| 29 | + * below for an example of using this class. |
| 30 | + * |
31 | 31 | * <pre> |
32 | 32 | * TaggedReader reader = new TaggedReader(...); |
33 | 33 | * try { |
|
44 | 44 | * } |
45 | 45 | * </pre> |
46 | 46 | * <p> |
47 | | - * Alternatively, the {@link #throwIfCauseOf(Throwable)} method can be |
48 | | - * used to let higher levels of code handle the exception caused by this |
49 | | - * reader while other processing errors are being taken care of at this |
50 | | - * lower level. |
| 47 | + * Alternatively, the {@link #throwIfCauseOf(Throwable)} method can be used to let higher levels of code handle the |
| 48 | + * exception caused by this reader while other processing errors are being taken care of at this lower level. |
| 49 | + * </p> |
| 50 | + * |
51 | 51 | * <pre> |
52 | 52 | * TaggedReader reader = new TaggedReader(...); |
53 | 53 | * try { |
@@ -81,19 +81,16 @@ public TaggedReader(final Reader proxy) { |
81 | 81 | * Tests if the given exception was caused by this reader. |
82 | 82 | * |
83 | 83 | * @param exception an exception |
84 | | - * @return {@code true} if the exception was thrown by this reader, |
85 | | - * {@code false} otherwise |
| 84 | + * @return {@code true} if the exception was thrown by this reader, {@code false} otherwise |
86 | 85 | */ |
87 | 86 | public boolean isCauseOf(final Throwable exception) { |
88 | 87 | return TaggedIOException.isTaggedWith(exception, tag); |
89 | 88 | } |
90 | 89 |
|
91 | 90 | /** |
92 | | - * Re-throws the original exception thrown by this reader. This method |
93 | | - * first checks whether the given exception is a {@link TaggedIOException} |
94 | | - * wrapper created by this decorator, and then unwraps and throws the |
95 | | - * original wrapped exception. Returns normally if the exception was |
96 | | - * not thrown by this reader. |
| 91 | + * Re-throws the original exception thrown by this reader. This method first checks whether the given exception is a |
| 92 | + * {@link TaggedIOException} wrapper created by this decorator, and then unwraps and throws the original wrapped |
| 93 | + * exception. Returns normally if the exception was not thrown by this reader. |
97 | 94 | * |
98 | 95 | * @param throwable an exception |
99 | 96 | * @throws IOException original exception, if any, thrown by this reader |
|
0 commit comments