Error getting tags :
error 404Error getting tags :
error 404 errorDialog | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
errorDialog
Basics
Expander triangle
Type
Message
Syntax

errorDialog executionError, parseError

Introduced
1.0
Changed
1.1
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent to an object when one of its handlers cannot be run due to an execution error.
Examples

on errorDialog pExecutionError, pParseError
answer "An error occurred on line: " & item 2 of line 1 of pExecutionError
end errorDialog

Additional Comments
Expander triangle

Handle the errorDialog message to prevent the standard error window from appearing, when you want to handle the error in a custom handler.

Parameters:

The errorDialog message is sent with two parameters.

The executionError describes the error that occurred.

The parseError is deprecated.

The executionError parameter is a standard Revolution error backtrace in the form:

<error-code>,<line-number>,<column-number>[,<hint>]

Comments:

Standard error descriptions are stored in the cErrorsList of the first card of stack "revErrorDisplay". The error-code refers to the line number in this custom property which contains the error description.

You can look up the description of an error using this line of code:

answer line (item 1 of line 1 of pExecutionError) of the cErrorsList of card 1 of stack "revErrorDisplay"

Note: The exact format of the executionError may change from release to release.

If the lockErrorDialogs property is true, the errorDialog message is sent to the object that set the lockErrorDialogs., rather than to the object whose script contained the error. (The lockErrorDialogs can be set to true either by setting the property directly, or with the lock error dialogs command.)

Note: the errorDialog message is only sent while Script Debug mode is turned off. To toggle Script Debug mode, click on the Development menu of Revolution's menubar.

Changes to Revolution:

The executionError parameter was introduced in version 1.1. In previous versions, this information was stored in the executionError property.

User Comments
Expander triangle