VWorks software calls the
Error method after an error occurs, that is, the plugin returned a
RETURN_FAIL error code. See
“ReturnCode enumerated type” .
VWorks software passes an Error XML element into the
sXML parameter of the
Error method. This XML element provides information about the error that occurred in
VWorks software.
The Error element has the following attributes:
The following sample code is an Error XML element that is received by the plugin from
VWorks software as a string in the
sXML parameter of the
Error method.
VWorks software passes information about an error that was generated by the plugin named
Plugin ‑ 1.
The plugin returns a HookResults XML block in the sResultXML parameter of the
Error method. For information about the structure and contents of this XML block, see
“HookResults XML block” .
The following sample code is a HookResults XML block that is returned to VWorks software by the plugin as a string in the
sResultXML parameter of the
Error method. The plugin tells the scheduler to pause the runset. It also tells
VWorks software to write the following Error-type message to the Main Log: