org.mule.config
Interface ExceptionReader
- All Known Implementing Classes:
- AxisFaultExceptionReader, DefaultExceptionReader, JmsExceptionReader, NamingExceptionReader, SQLExceptionReader, UMOExceptionReader
- 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.
getMessage
public String getMessage(Throwable t)
getCause
public Throwable getCause(Throwable t)
getExceptionType
public Class getExceptionType()
getInfo
public Map getInfo(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-2008 MuleSource, Inc.. All Rights Reserved.