MCPcopy Create free account
hub / github.com/antlr/codebuff / rethrow

Method rethrow

corpus/java/training/guava/io/Closer.java:149–154  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 15

writeMethod · 0.95
writeFromMethod · 0.95
isEmptyMethod · 0.95
sizeMethod · 0.95
copyToMethod · 0.95
readMethod · 0.95
contentEqualsMethod · 0.95
sliceStreamMethod · 0.95
readMethod · 0.95
mapMethod · 0.95
writeMethod · 0.95
writeLinesMethod · 0.95

Calls 2

propagateIfPossibleMethod · 0.95
checkNotNullMethod · 0.45

Tested by

no test coverage detected