Package org.apache.activemq.web.util
Class ExceptionUtils
java.lang.Object
org.apache.activemq.web.util.ExceptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Throwable
Finds the root cause of an exception.static boolean
isRootCause
(Throwable e, Class<?> clazz) Returns true if the passed in class is the root cause of the exception
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details
-
getRootCause
Finds the root cause of an exception. Will return the original exception if the first getCause returns null.- Parameters:
e
-- Returns:
-
isRootCause
Returns true if the passed in class is the root cause of the exception- Parameters:
e
-clazz
-- Returns:
-