org.mule.api.config
Interface ExceptionReader
- All Known Implementing Classes:
- AxisFaultExceptionReader, DefaultExceptionReader, JmsExceptionReader, MuleExceptionReader, NamingExceptionReader, SQLExceptionReader
public interface ExceptionReader
Provides a strategy interface for reading information from an exception in a
consistent way. For example JMS 1.0.2b uses linkedExceptions rather that 'cause'
and SQLExceptions hold additional information that can be extracted using this
interface.
Method Summary |
java.lang.Throwable |
getCause(java.lang.Throwable t)
|
java.lang.Class<?> |
getExceptionType()
|
java.util.Map<?,?> |
getInfo(java.lang.Throwable t)
Returns a map of the non-stanard information stored on the exception |
java.lang.String |
getMessage(java.lang.Throwable t)
|
getMessage
java.lang.String getMessage(java.lang.Throwable t)
getCause
java.lang.Throwable getCause(java.lang.Throwable t)
getExceptionType
java.lang.Class<?> getExceptionType()
getInfo
java.util.Map<?,?> getInfo(java.lang.Throwable t)
- Returns a map of the non-stanard information stored on the exception
- Parameters:
t
- the exception to extract the information from
- Returns:
- a map of the non-stanard information stored on the exception
Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.