ErrorException.UnderlyingError

From Xojo Documentation

Read-Only Property (As RuntimeException )
RuntimeExceptionValue = aErrorException.UnderlyingError

Supported for all project types and targets.

The lower level error, if any that triggered this error.