FileDocCategorySizeDatePackage
ExceptionUtil.javaAPI DocGlassfish v2 API2565Fri May 04 22:25:00 BST 2007com.sun.cli.util

ExceptionUtil

public final class ExceptionUtil extends Object

Fields Summary
Constructors Summary
private ExceptionUtil()

		// disallow instantiation
	
Methods Summary
public static java.lang.ThrowablegetRootCause(java.lang.Exception e)

		// sort through the multi-layer exceptions to find the root cause and return that one
		Throwable t	= e;
		while ( t != null )
		{
			final Throwable temp	= t.getCause();
			if ( temp == null )
				break;
			t	= temp;
		}
		
		return( t );