Class FunctionUtils

    • Method Detail

      • sneakyThrow

        protected static <T extends Exception,​R> R sneakyThrow​(Throwable t)
                                                              throws T extends Exception
        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 Exception