<doc>
  <legacy_id>2305</legacy_id>
  <name>lockErrorDialogs</name>
  <type>property</type>
  <syntax>
    <example>set the lockErrorDialogs to {true | false}</example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Writing LiveCode</category>
  </classification>
  <references>
    <command tag="unlock error dialogs">unlock error dialogs Command</command>
    <function tag="errorObject">errorObject Function</function>
    <function tag="interrupt">interrupt Function</function>
    <message tag="scriptParsingError">scriptParsingError Message</message>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Specifies whether <glossary tag="execution error">execution errors</glossary> cause an <message tag="errorDialog">errorDialog</message> <keyword tag="message box">message</keyword> to be sent, or display the error window.</summary>
  <examples>
    <example>set the lockErrorDialogs to true</example>
  </examples>
  <description>
    <p>Use the <b>lockErrorDialogs</b> <glossary tag="property">property</glossary> to <glossary tag="handle">handle</glossary> <glossary tag="execution error">execution errors</glossary> in a custom handler, rather than allowing LiveCode to display the standard error window.</p><p/><p><b>Value:</b></p><p>The <b>lockErrorDialogs</b> is true or false.</p><p/><p>By default, the <b>lockErrorDialogs</b> <glossary tag="property">property</glossary> is set to false. It is <command tag="reset">reset</command> to false when all pending <glossary tag="handler">handlers</glossary> are finished <glossary tag="execute">executing</glossary>.</p><p/><p><b>Comments:</b></p><p>If an execution error occurs while the <b>lockErrorDialogs</b> <glossary tag="property">property</glossary> is set to false, the error window appears. This is the <keyword tag="default">default</keyword> <glossary tag="behavior">behavior</glossary>.</p><p/><p>If an execution error occurs while the <b>lockErrorDialogs</b> <glossary tag="property">property</glossary> is set to true, an <message tag="errorDialog">errorDialog</message> <keyword tag="message box">message</keyword> is sent to the <glossary tag="object">object</glossary> whose <glossary tag="handler">handler</glossary> set the <property tag="lockErrorDialogs">lockErrorDialogs</property> to true.</p><p/><p>If you set the <b>lockErrorDialogs</b> to true, you should provide an <message tag="errorDialog">errorDialog</message> <glossary tag="handler">handler</glossary> to notify the user of the <glossary tag="error">error</glossary> and perform any necessary cleanup.</p>
  </description>
</doc>