RuntimeException.Constructor(message As String, errorCode As Integer)

From Xojo Documentation

Constructor

RuntimeException.Constructor(message As String = "", errorCode As Integer = 0])

New in 2019r2

Used to raise your own RuntimeException with a message and optional error code.