Class Exceptions

    • Method Detail

      • findCause

        public static <T extends Throwable> T findCause​(Throwable throwable,
                                                        Class<T> causeType)
        Looks for a cause of the specified type in throwable's chain
        Type Parameters:
        T -
        Parameters:
        throwable -
        causeType -
        Returns:
        matched Throwable in the chain or null if none