com.acsinet_solutions.util.exception
Interface ExceptionInfo

All Known Implementing Classes:
ReflectiveExceptionInfo

public interface ExceptionInfo

Interface that wraps information about exceptions, in particular nested exception information

Author:
Santiago Arriaga

Method Summary
 java.lang.String getMessage(java.lang.Throwable throwable)
          Get the message for the given throwable
 java.lang.Throwable getNextThrowable(java.lang.Throwable throwable)
          Return the nested Throwable for the given input throwable, if any.
 boolean givesInfoAbout(java.lang.Throwable throwable)
          Return whether or not this class gives information about the throwable passed as parameter.
 

Method Detail

givesInfoAbout

boolean givesInfoAbout(java.lang.Throwable throwable)
Return whether or not this class gives information about the throwable passed as parameter. If true is returned, the rest of the methods in this interface can be used for the given throwable object

Parameters:
throwable - A not-null Throwable instance
Returns:
true if this class can operate with the given Throwable instance; false otherwise

getNextThrowable

java.lang.Throwable getNextThrowable(java.lang.Throwable throwable)
Return the nested Throwable for the given input throwable, if any.

Parameters:
throwable - A not-null Throwable instance that returned true when passed to the givesInfoAbout() method
A - Throwable instance if there is a nested exception; null otherwise.

getMessage

java.lang.String getMessage(java.lang.Throwable throwable)
Get the message for the given throwable

Returns:
A not-null valid message instance