Package org.opennms.web.utils
Class ExceptionUtils
- java.lang.Object
-
- org.opennms.web.utils.ExceptionUtils
-
public class ExceptionUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ExceptionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getFullStackTrace(java.lang.Throwable throwable)
static <T extends java.lang.Throwable>
TgetRootCause(java.lang.Throwable t, java.lang.Class<T> type)
Recursively attempts to cast the givenThrowable
and it's cause to anThrowable
of the given type.
-
-
-
Method Detail
-
getRootCause
public static <T extends java.lang.Throwable> T getRootCause(java.lang.Throwable t, java.lang.Class<T> type) throws javax.servlet.ServletException
Recursively attempts to cast the givenThrowable
and it's cause to anThrowable
of the given type.- Parameters:
t
-type
-- Returns:
- null of no suitable cause was found.
- Throws:
javax.servlet.ServletException
-
getFullStackTrace
public static java.lang.String getFullStackTrace(java.lang.Throwable throwable)
-
-