Package org.openrewrite.internal
Class Throwing
java.lang.Object
org.openrewrite.internal.Throwing
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Consumer<T>
rethrow
(ThrowingConsumer<T> consumer) static <E extends Throwable>
voidThe compiler sees the signature with the throws T inferred to a RuntimeException type, so it allows the unchecked exception to propagate.
-
Method Details
-
rethrow
-
sneakyThrow
The compiler sees the signature with the throws T inferred to a RuntimeException type, so it allows the unchecked exception to propagate. .- Throws:
E extends Throwable
-