Stores the given throwable and rethrows it. It will be rethrown as is if it is an IOException, RuntimeException or Error. Otherwise, it will be rethrown wrapped in a RuntimeException. Note: Be sure to declare all of the checked exception types your try block ca
(Throwable e)
| 147 | * @throws IOException when the given throwable is an IOException |
| 148 | */ |
| 149 | public RuntimeException rethrow(Throwable e) throws IOException { |
| 150 | checkNotNull(e); |
| 151 | thrown = e; |
| 152 | Throwables.propagateIfPossible(e, IOException.class); |
| 153 | throw new RuntimeException(e); |
| 154 | } |
| 155 | |
| 156 | /** |
| 157 | * Stores the given throwable and rethrows it. It will be rethrown as is if it is an |
no test coverage detected