Class ExceptionUtils
java.lang.Object
io.micronaut.core.util.ExceptionUtils
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details
-
sneakyThrow
Throws a givenThrowablewithout requiring the caller to handle it explicitly, bypassing checked exception restrictions at compile time.- Type Parameters:
T- the type of the throwable being thrownR- the return type of the method- Parameters:
t- the throwable instance to be thrown- Returns:
- this method does not return normally, as it always throws the supplied throwable
- Throws:
T- the throwable passed as the argument
-