Class ExceptionUtils


  • public class ExceptionUtils
    extends Object
    • Constructor Detail

      • ExceptionUtils

        public ExceptionUtils()
    • Method Detail

      • getRootCause

        public static Throwable getRootCause​(Throwable e)
        Finds the root cause of an exception. Will return the original exception if the first getCause returns null.
        Parameters:
        e -
        Returns:
      • isRootCause

        public static boolean isRootCause​(Throwable e,
                                          Class<?> clazz)
        Returns true if the passed in class is the root cause of the exception
        Parameters:
        e -
        clazz -
        Returns: