com.cafesoft.core.util
Class ExceptionUtils
java.lang.Object
|
+--com.cafesoft.core.util.ExceptionUtils
- public final class ExceptionUtils
- extends Object
Utility class for dealing with Exceptions
- Since:
- 11/14/02
- See Also:
NestedException
|
Method Summary |
static Throwable |
getRootCause(Throwable t)
Get the root cause of an Exception
This method currently only supports the NestedException class.
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getRootCause
public static final Throwable getRootCause(Throwable t)
- Get the root cause of an Exception
This method currently only supports the NestedException class.
It does not take into consideration the new Throwable class
in Java 1.4
- Parameters:
t - the Throwable object to get the root cause for
- Returns:
- the root cause exception, or null if the parameter
passed in was null
Generated on 8:41:50 AM June 06, 2005, © 1996-2005 Cafésoft LLC. All rights reserved.