org.springframework.shell.support.util
Class ExceptionUtils

java.lang.Object
  extended by org.springframework.shell.support.util.ExceptionUtils

public abstract class ExceptionUtils
extends Object

Methods for working with exceptions.

Since:
1.0

Constructor Summary
ExceptionUtils()
           
 
Method Summary
static Throwable extractRootCause(Throwable ex)
          Obtains the root cause of an exception, if available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionUtils

public ExceptionUtils()
Method Detail

extractRootCause

public static final Throwable extractRootCause(Throwable ex)
Obtains the root cause of an exception, if available.

Parameters:
ex - to extract the root cause from (required)
Returns:
the root cause, or original exception is unavailable (guaranteed to never be null)