|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.lang.exception.ExceptionUtils
org.mule.util.ExceptionUtils
public class ExceptionUtils
Mule exception utilities.
| Constructor Summary | |
|---|---|
ExceptionUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
containsType(Throwable throwable,
Class<?> type)
This method returns true if the throwable contains a Throwable that
matches the specified class or subclass in the exception chain. |
static Throwable |
getDeepestOccurenceOfType(Throwable throwable,
Class<?> type)
This method returns the throwable closest to the root cause that matches the specified class or subclass. |
| Methods inherited from class org.apache.commons.lang.exception.ExceptionUtils |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionUtils()
| Method Detail |
|---|
public static boolean containsType(Throwable throwable,
Class<?> type)
Throwable that
matches the specified class or subclass in the exception chain. Subclasses of
the specified class do match.
throwable - the throwable to inspect, may be nulltype - the type to search for, subclasses match, null returns false
public static Throwable getDeepestOccurenceOfType(Throwable throwable,
Class<?> type)
throwable - the throwable to inspect, may be nulltype - the type to search for, subclasses match, null returns null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||