PML Customisation
User Guide
Errors and Error Handling
: Other Responses to an Error
Other Responses to an Error
After handling an error, you can still output the detail of the error message with the following command:
q var !!error
To abandon the running PML Macro or function, but to re-instate the error so that the calling PML code has a chance to handle it, use the command:
return error
You can also re-instate the error but suppress the alert using the command:
return error noalert
To generate a new error (or replace an error with their own error) plus an optional message, use one of the following
return error 1
return error 1 ‘Your error message’
return error 1 NOALERT
To handle such an error there is a special form of the
handle
command:
handle 1
PML code to handle a user-defined error number
endhandle
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.