|
||||||||||
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 -
Field Summary | |
---|---|
static String |
APPLY_TO_PROPERTY
a comma-separated list of other protocols the mappings in a file can be applied to |
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 |
Method Summary | |
---|---|
static String |
getDocUrl(Class exception)
|
static Class |
getErrorClass(int code)
|
static int |
getErrorCode(Class exception)
|
static String |
getErrorCodePropertyName(String protocol)
|
static String |
getErrorMapping(String protocol,
Class exception)
|
static Map |
getExceptionInfo(Throwable t)
|
static ExceptionReader |
getExceptionReader(Throwable t)
Gets an exception reader for the exception |
static List |
getExceptionsAsList(Throwable t)
|
static String |
getExceptionStack(Throwable t)
|
static String |
getJavaDocUrl(Class exception)
|
static Throwable |
getRootException(Throwable t)
|
static MuleException |
getRootMuleException(Throwable t)
|
static Throwable |
getRootParentException(Throwable t)
|
static void |
registerExceptionReader(ExceptionReader reader)
Registers an exception reader with Mule |
static String |
writeException(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 String ERROR_CODE_PROPERTY
public static final String APPLY_TO_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 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 ExceptionReader getExceptionReader(Throwable t)
t
- the exception to get a reader for
public static String writeException(Throwable t)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |