|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.config.ExceptionHelper
public final class ExceptionHelper
ExceptionHelper
provides a number of helper functions that can be
useful for dealing with Mule exceptions. This class has 3 core functions -
Nested Class Summary | |
---|---|
static interface |
ExceptionHelper.ExceptionEvaluator<T>
|
Field Summary | |
---|---|
static String |
ERROR_CODE_PROPERTY
This is the property to set the error code to no the message it is the property name the Transport provider uses set the set the error code on the underlying message |
protected static Log |
logger
logger used by this class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ERROR_CODE_PROPERTY
protected static final Log logger
Method Detail |
---|
public static int getErrorCode(Class exception)
public static Class getErrorClass(int code)
public static String getErrorCodePropertyName(String protocol)
public static String getErrorMapping(String protocol, Class exception)
public static String getJavaDocUrl(Class<?> exception)
public static String getDocUrl(Class<?> exception)
public static Throwable getRootException(Throwable t)
public static Throwable getNonMuleException(Throwable t)
public static Throwable sanitizeIfNeeded(Throwable t)
public static Throwable sanitize(Throwable t)
public static Throwable summarise(Throwable t, int depth)
public static Throwable getRootParentException(Throwable t)
public static MuleException getRootMuleException(Throwable t)
public static List getExceptionsAsList(Throwable t)
public static Map getExceptionInfo(Throwable t)
public static String getExceptionStack(Throwable t)
public static void registerExceptionReader(ExceptionReader reader)
reader
- the reader to register.public static <T> T traverseCauseHierarchy(Throwable e, ExceptionHelper.ExceptionEvaluator<T> evaluator)
public static ExceptionReader getExceptionReader(Throwable t)
t
- the exception to get a reader for
public static String writeException(Throwable t)
public static <T extends Throwable> T unwrap(T t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |