RBScript.RuntimeError
From Xojo Documentation
Event
RBScript.RuntimeError(line as Integer, error as RuntimeException)
Supported for all project types and targets.
Supported for all project types and targets.
A runtime error, error has occurred.