RuntimeException.Message

From Xojo Documentation

Property (As String )
aRuntimeException.Message = newStringValue
or
StringValue = aRuntimeException.Message

Supported for all project types and targets.

Used to contain descriptive text to display when the runtime exception is encountered.

Sample Code

The following example displays a message box if, for example, you try to create more than one KeyChainItem for the same application.

Var newItem As KeyChainItem
If System.KeyChainCount > 0 Then
newItem = New KeyChainItem
// Indicate the name of the application
newItem.ServiceName = "MyApplication"

// Create a new keychain item for the application and assign the password
System.KeyChain.AddPassword(newItem, "SecretPassword")
Else
Beep
MessageBox("You don't have a key chain.")
End If
Exception err As KeyChainException
MessageBox(err.Message + ". Error Code: " + err.ErrorNumber.ToString)