get Root Cause
Returns the innermost cause of this. The first throwable in a chain provides context from when the error or exception was initially detected. Example usage:
assertEquals("Unable to assign a customer id", e.getRootCause().message)Content copied to clipboard
See also
Throws
if there is a loop in the causal chain