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)
| 151 | |
| 152 | |
| 153 | public RuntimeException rethrow(Throwable e) throws IOException { |
| 154 | checkNotNull(e); |
| 155 | thrown = e; |
| 156 | Throwables.propagateIfPossible(e, IOException.class); |
| 157 | throw new RuntimeException(e); |
| 158 | } |
| 159 | |
| 160 | /** |
| 161 | * Stores the given throwable and rethrows it. It will be rethrown as is if it is an |
no test coverage detected