lockErrorDialogs

Specifies whether execution errors cause an errorDialog message to be sent, or display the error window.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the lockErrorDialogs to {true | false}

# Examples

set the lockErrorDialogs to true

# Description

Use the lockErrorDialogs property to handle execution errors in a custom handler, rather than allowing LiveCode to display the standard error window.

If an execution error occurs while the lockErrorDialogs property is set to false, the error window appears. This is the default behavior.

If an execution error occurs while the lockErrorDialogs property is set to true, an errorDialog message is sent to the object whose handler set the lockErrorDialogs to true.

If you set the lockErrorDialogs to true, you should provide an errorDialog handler to notify the user of the error and perform any necessary cleanup.

# Tags

# See

- **keyword:** default - **property:** lockErrorDialogs - **message:** errorDialog, scriptParsingError - **command:** reset, unlock error dialogs - **function:** interrupt, errorObject - **glossary:** property, handle, handler, error, execute, message, execution error, behavior, object