Class ExceptionUtils


  • public class ExceptionUtils
    extends Object
    • Constructor Detail

      • ExceptionUtils

        public ExceptionUtils()
    • Method Detail

      • getRootCause

        public static <T extends Throwable> T getRootCause​(Throwable t,
                                                           Class<T> type)
                                                    throws javax.servlet.ServletException
        Recursively attempts to cast the given Throwable and it's cause to an Throwable of the given type.
        Parameters:
        t -
        type -
        Returns:
        null of no suitable cause was found.
        Throws:
        javax.servlet.ServletException
      • getFullStackTrace

        public static String getFullStackTrace​(Throwable throwable)