com.acsinet_solutions.util.exception
Class ReflectiveExceptionInfo

java.lang.Object
  extended by com.acsinet_solutions.util.exception.ReflectiveExceptionInfo
All Implemented Interfaces:
ExceptionInfo

public final class ReflectiveExceptionInfo
extends java.lang.Object
implements ExceptionInfo

Implementation of a reflection-based ExceptionInfo interface

Author:
Santiago Arriaga

Constructor Summary
ReflectiveExceptionInfo()
           
 
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)
          This method is meant to be generic, so it must be last option in an exception info list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveExceptionInfo

public ReflectiveExceptionInfo()
Method Detail

givesInfoAbout

public final boolean givesInfoAbout(java.lang.Throwable throwable)
This method is meant to be generic, so it must be last option in an exception info list

Specified by:
givesInfoAbout in interface ExceptionInfo
Parameters:
throwable - A not-null Throwable instance
Returns:
always true
See Also:
com.acsinet_solutions.cetia4.exception.ExceptionInfo#givesInfoAbout(Throwable)

getNextThrowable

public final java.lang.Throwable getNextThrowable(java.lang.Throwable throwable)
Description copied from interface: ExceptionInfo
Return the nested Throwable for the given input throwable, if any.

Specified by:
getNextThrowable in interface ExceptionInfo
Parameters:
throwable - A not-null Throwable instance that returned true when passed to the givesInfoAbout() method
See Also:
com.acsinet_solutions.cetia4.exception.ExceptionInfo#getNextThrowable(Throwable)

getMessage

public final java.lang.String getMessage(java.lang.Throwable throwable)
Description copied from interface: ExceptionInfo
Get the message for the given throwable

Specified by:
getMessage in interface ExceptionInfo
Returns:
A not-null valid message instance
See Also:
com.acsinet_solutions.cetia4.exception.ExceptionInfo#getMessage(Throwable)