multex
Class Jdk1_4CauseGetter
java.lang.Object
|
+--multex.Jdk1_4CauseGetter
- All Implemented Interfaces:
- CauseGetter
- public class Jdk1_4CauseGetter
- extends java.lang.Object
- implements CauseGetter
Describes, how to get the causing exception of any exception in JDK 1.4
with an accessible causing exception.
For the exceptions in java.sql calls their method getNextException() or
getNextWarning(), respectively. For all other exceptions uses the standard
cause getter Throwable.getcause().
Attention: Compiles only from JDK 1.4 and is then the most efficient solution
for getting the cause of an exception. As of forward/backward compatibility
issues it is now preferable to use the ReflectionCauseGetter
.
In the future, when only standard exception chaining à la Throwable.getCause()
will be used, then this CauseGetter will be the most efficient.
Method Summary |
java.lang.Throwable |
getCause(java.lang.Throwable i_throwable)
Returns the causing Throwable object of an i_throwable other than Failure,
or null if not known |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Jdk1_4CauseGetter
public Jdk1_4CauseGetter()
getCause
public java.lang.Throwable getCause(java.lang.Throwable i_throwable)
- Description copied from interface:
CauseGetter
- Returns the causing Throwable object of an i_throwable other than Failure,
or null if not known
- Specified by:
getCause
in interface CauseGetter