org.springframework.shell.support.util
Class ExceptionUtils
java.lang.Object
org.springframework.shell.support.util.ExceptionUtils
public abstract class ExceptionUtils
- extends Object
Methods for working with exceptions.
- Since:
- 1.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionUtils
public ExceptionUtils()
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)