Class SneakyThrow
java.lang.Object
io.smallrye.faulttolerance.core.util.SneakyThrow
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Throwable>
RuntimeExceptionThis method can and should be used as part of athrowstatement, such as:throw sneakyThrow(exception);.
-
Method Details
-
sneakyThrow
This method can and should be used as part of athrowstatement, such as:throw sneakyThrow(exception);. It is guaranteed to never return normally, and this style of usage makes sure that the Java compiler is aware of that.- Throws:
E
-