|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 -
Field Summary | |
---|---|
static java.lang.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 |
Method Summary | ||
---|---|---|
static java.lang.String |
getDocUrl(java.lang.Class<?> exception)
|
|
static java.lang.Class |
getErrorClass(int code)
|
|
static int |
getErrorCode(java.lang.Class exception)
|
|
static java.lang.String |
getErrorCodePropertyName(java.lang.String protocol)
|
|
static java.lang.String |
getErrorMapping(java.lang.String protocol,
java.lang.Class exception)
|
|
static java.util.Map |
getExceptionInfo(java.lang.Throwable t)
|
|
static ExceptionReader |
getExceptionReader(java.lang.Throwable t)
Gets an exception reader for the exception |
|
static java.util.List |
getExceptionsAsList(java.lang.Throwable t)
|
|
static java.lang.String |
getExceptionStack(java.lang.Throwable t)
|
|
static java.lang.String |
getJavaDocUrl(java.lang.Class<?> exception)
|
|
static java.lang.Throwable |
getRootException(java.lang.Throwable t)
|
|
static MuleException |
getRootMuleException(java.lang.Throwable t)
|
|
static java.lang.Throwable |
getRootParentException(java.lang.Throwable t)
|
|
static void |
registerExceptionReader(ExceptionReader reader)
Registers an exception reader with Mule |
|
static java.lang.Throwable |
sanitize(java.lang.Throwable t)
Removes some internal Mule entries from the stacktrace. |
|
static java.lang.Throwable |
summarise(java.lang.Throwable t,
int depth)
Removes some internal Mule entries from the stacktrace. |
|
static
|
unwrap(T t)
|
|
static java.lang.String |
writeException(java.lang.Throwable t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ERROR_CODE_PROPERTY
protected static final Log logger
Method Detail |
---|
public static int getErrorCode(java.lang.Class exception)
public static java.lang.Class getErrorClass(int code)
public static java.lang.String getErrorCodePropertyName(java.lang.String protocol)
public static java.lang.String getErrorMapping(java.lang.String protocol, java.lang.Class exception)
public static java.lang.String getJavaDocUrl(java.lang.Class<?> exception)
public static java.lang.String getDocUrl(java.lang.Class<?> exception)
public static java.lang.Throwable getRootException(java.lang.Throwable t)
public static java.lang.Throwable sanitize(java.lang.Throwable t)
public static java.lang.Throwable summarise(java.lang.Throwable t, int depth)
public static java.lang.Throwable getRootParentException(java.lang.Throwable t)
public static MuleException getRootMuleException(java.lang.Throwable t)
public static java.util.List getExceptionsAsList(java.lang.Throwable t)
public static java.util.Map getExceptionInfo(java.lang.Throwable t)
public static java.lang.String getExceptionStack(java.lang.Throwable t)
public static void registerExceptionReader(ExceptionReader reader)
reader
- the reader to register.public static ExceptionReader getExceptionReader(java.lang.Throwable t)
t
- the exception to get a reader for
public static java.lang.String writeException(java.lang.Throwable t)
public static <T extends java.lang.Throwable> T unwrap(T t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |