Class FunctionUtils

    • Method Detail

      • sneakyThrow

        protected static <T extends Throwable,​R> R sneakyThrow​(Throwable t)
                                                              throws T extends Throwable
        Method allowing to throw a checked exception as an unchecked one.
        Type Parameters:
        T - type of exception to throw
        R - type of returned object to hide
        Throws:
        T extends Throwable