public class ExceptionUtils
extends org.mule.util.ExceptionUtils
Constructor and Description |
---|
ExceptionUtils() |
Modifier and Type | Method and Description |
---|---|
static <ET> ET |
getFirstOccurenceOfType(Throwable throwable,
Class<ET> type)
This method returns the first throwable in the throwable chain that matches
the specified class or subclass.
|
containsType, getDeepestOccurenceOfType, getFullStackTraceWithoutMessages
addCauseMethodName, getCause, getCause, getFullStackTrace, getMessage, getRootCause, getRootCauseMessage, getRootCauseStackTrace, getStackFrames, getStackTrace, getThrowableCount, getThrowableList, getThrowables, indexOfThrowable, indexOfThrowable, indexOfType, indexOfType, isCauseMethodName, isNestedThrowable, isThrowableNested, printRootCauseStackTrace, printRootCauseStackTrace, printRootCauseStackTrace, removeCauseMethodName, removeCommonFrames, setCause
public static <ET> ET getFirstOccurenceOfType(Throwable throwable, Class<ET> type)
throwable
- the throwable to inspect, may be nulltype
- the type to search for, subclasses match, null returns nullCopyright © 2010–2016. All rights reserved.