getMessageText

getMessageText(msgNumber: Integer): String;

The getMessageText method of the Application class returns the error text associated with an exception that has an errorCode specified by the value of the msgNumber parameter.

Use the getMessageText method in contexts where you know the errorCode value but do not have the exception instance. The code fragment in the following example shows the use of the getMessageText method.

write app.getMessageText(1090);
// Outputs "Attempted access via null object reference"