org.znerd.util
Class ExceptionUtils

java.lang.Object
  extended by org.znerd.util.ExceptionUtils

public final class ExceptionUtils
extends Object

Utility functions related to exceptions.


Method Summary
static Throwable getRootCause(Throwable exception)
          Determines the root cause for the specified exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRootCause

public static Throwable getRootCause(Throwable exception)
Determines the root cause for the specified exception.

Parameters:
exception - the exception to determine the root cause for, can be null.
Returns:
the root cause exception, can be null.


Copyright © 2011-2012. All Rights Reserved.