Stores the given throwable and rethrows it. It will be rethrown as is if it is an {@code IOException}, {@code RuntimeException} or {@code Error}. Otherwise, it will be rethrown wrapped in a {@code RuntimeException}. <b>Note:</b> Be sure to declare all of the checked exception types your try block ca
(Throwable e)
| 128 | * @throws IOException when the given throwable is an IOException |
| 129 | */ |
| 130 | public RuntimeException rethrow(Throwable e) throws IOException { |
| 131 | checkNotNull(e); |
| 132 | thrown = e; |
| 133 | throwIfInstanceOf(e, IOException.class); |
| 134 | throwIfUnchecked(e); |
| 135 | throw new RuntimeException(e); |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Stores the given throwable and rethrows it. It will be rethrown as is if it is an {@code |