Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
Other versions of this page are also available for the
following:
8/28/2008
This command specifies a label where control should be transferred in the case of an error.
Syntax
onerror [ label ] |
Parameters
- label
-
Specifies the label to branch to if a script command returns an error. Labels are specified as in MS-DOS batch files by starting a line with a colon followed by the label's name.
Remarks
This command lets you define a label where control is transferred if any script command generates an error. You can specify different labels for different areas of a script. An error label remains current until another onerrorcommand is executed.