getRootCause method
Returns the root cause of this exception by traversing the cause chain.
Returns null
if there is no root cause or if the cause chain is circular.
Implementation
Throwable? getRootCause() {
return NestedExceptionUtils.getRootCause(this);
}