spring-framework / org.springframework.core / NestedExceptionUtils / getRootCause

getRootCause

@Nullable open static fun getRootCause(@Nullable original: Throwable): Throwable

Retrieve the innermost cause of the given exception, if any.

Parameters

original - the original exception to introspect

Return
the innermost exception, or null if none

Since
4.3.9