MCPcopy
hub / github.com/google/guava / propagate

Method propagate

guava/src/com/google/common/base/Throwables.java:228–235  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Calls 1

throwIfUncheckedMethod · 0.95