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
 Throwable getCause(Throwable t)
           
 Class getExceptionType()
           
 Map getInfo(Throwable t)
          Returns a map of the non-stanard information stored on the exception
 String getMessage(Throwable t)
           
 

Method Detail

getMessage

String getMessage(Throwable t)

getCause

Throwable getCause(Throwable t)

getExceptionType

Class getExceptionType()

getInfo

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-2009 MuleSource, Inc.. All Rights Reserved.