MCPcopy Index your code
hub / github.com/antlr/codebuff / propagateIfPossible

Method propagateIfPossible

output/java_guava/1.4.17/Throwables.java:161–167  ·  view source on GitHub ↗

Propagates throwable exactly as-is, if and only if it is an instance of RuntimeException or Error. Example usage: try { someMethodThatCouldThrowAnything(); } catch (IKnowWhatToDoWithThisException e) { handle(e); } catch (Throwable t) { Throwables.propagateIfPossi

(@Nullable Throwable throwable)

Source from the content-addressed store, hash-verified

159 */
160
161 @Deprecated
162 @GwtIncompatible
163 public static void propagateIfPossible(@Nullable Throwable throwable) {
164 if (throwable != null) {
165 throwIfUnchecked(throwable);
166 }
167 }
168
169 /**
170 * Propagates {@code throwable} exactly as-is, if and only if it is an instance of

Callers 2

rethrowMethod · 0.95
closeMethod · 0.95

Calls 3

throwIfUncheckedMethod · 0.95
propagateIfInstanceOfMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected