Propagates throwable as-is if it is an instance of RuntimeException or Error, or else as a last resort, wraps it in a RuntimeException and then propagates. This method always throws an exception. The RuntimeException return type allows client code to signa
(Throwable throwable)
| 226 | * deprecated {@code Throwables.propagate}</a>. |
| 227 | */ |
| 228 | @CanIgnoreReturnValue |
| 229 | @J2ktIncompatible |
| 230 | @GwtIncompatible |
| 231 | @Deprecated |
| 232 | public static RuntimeException propagate(Throwable throwable) { |
| 233 | throwIfUnchecked(throwable); |
| 234 | throw new RuntimeException(throwable); |
| 235 | } |
| 236 | |
| 237 | /** |
| 238 | * Returns the innermost cause of {@code throwable}. The first throwable in a chain provides |