Error getting tags :
error 404Error getting tags :
error 404 catch | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
catch
Basics
Expander triangle
Type
Keyword
Syntax
catch errorParameter
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Used within a try control structure to handle errors.
Examples

catch myError

Additional Comments
Expander triangle

Use the catch keyword to handle errors returned by a handler with the throw control structure.

Comments:

When one of the statements in a try control structure causes an execution error, the errorParameter is set to the error string, and the statements after the catch keyword are executed. If Revolution generates the error (for example, an execution error from a built-in command), the errorParameter is a positive number. An error string can also be returned from a handler by the throw keyword.

The statements after the catch keyword are only executed if there is an error. These statements can refer to the value of the errorParameter. For example, the catch section might contain an if or switch control structure, which does different things depending on the value of the errorParameter.

User Comments
Expander triangle