text

text(): String;

The text method of the Exception class returns the error text in English corresponding to the errorCode of the exception. This error text is displayed in the default exception dialog as the description. The text is obtained from the jadmsgs.eng file in the JADE bin directory by finding a line that begins with the errorCode number and then returning the text that follows it.

You can use a file other than jadmsgs.eng by setting the Language parameter in the [JadeClient] section of the JADE initialization file. For more details, see the JADE Initialization File Reference.

The code fragment in the following example shows the use of the text method.

if exc.errorCode = 1310 then   // Key already in dictionary
    abortTransaction;
    app.msgBox(exc.text, self.name, MsgBox_OK_Only +
         MsgBox_Exclamation_Mark_Icon);
    return Ex_Abort_Action;
endif;