spring-framework / org.springframework.core / NestedCheckedException / contains

contains

open fun contains(@Nullable exType: Class<*>): Boolean

Check whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.

Parameters

exType - the exception type to look for

Return
whether there is a nested exception of the specified type