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 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.