ErrorException.LocalizedReason

From Xojo Documentation

Read-Only Property (As Text )
TextValue = aErrorException.LocalizedReason

Supported for all project types and targets.

When available, a localized and user-presentable error message. If no suitable localized message is known, this will be empty.