Class ExceptionUtils

java.lang.Object
org.apache.activemq.web.util.ExceptionUtils

public class ExceptionUtils extends Object
  • Constructor Details

    • ExceptionUtils

      public ExceptionUtils()
  • Method Details

    • 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: