Package net.orbyfied.aspen.util
Class Throwables
java.lang.Object
net.orbyfied.aspen.util.Throwables
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Throwable>
voidAllows sneakily throwing an exception: This means any exception can be thrown without having to declare it in the method declaration.
-
Method Details
-
sneakyThrow
Allows sneakily throwing an exception: This means any exception can be thrown without having to declare it in the method declaration. Useful for rethrowing exceptions.- Type Parameters:
T- The throwable type.- Parameters:
t- The throwable to throw.- Throws:
T- The throwable.
-