Other Responses to an Error
- Last UpdatedOct 24, 2022
- 1 minute read
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