getMostSpecificCause method
Returns the most specific cause of this exception.
This is either the root cause (if available) or this exception itself.
Implementation
Throwable getMostSpecificCause() {
final rootCause = getRootCause();
return rootCause ?? this;
}