net.sf.clirr.core.internal
Class ExceptionUtil

java.lang.Object
  extended by net.sf.clirr.core.internal.ExceptionUtil

public final class ExceptionUtil
extends java.lang.Object

A helper class to initialize the cause of an exception. This allows Clirr to be compile time compatible with JDK 1.3 at still taking advantage of the JDK 1.4 chained exceptions feature if available.

Author:
lkuehne

Method Summary
static void initCause(java.lang.Throwable t, java.lang.Throwable cause)
          Initializes the chained exception if possible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initCause

public static void initCause(java.lang.Throwable t,
                             java.lang.Throwable cause)
Initializes the chained exception if possible. Does nothing if chained exceptions are not available on the current JDK (1.3 or lower).

Parameters:
t - the resulting exception (high abstraction level)
cause - the underlying cause of t (low abstraction level)


Copyright © 2003-2005 Lars Kühne. All Rights Reserved.