Last reviewed: 3/23/2024 12:11:24 PM
<error>
An <error> element catches an error event. It is equivalent to <catch event="error"> and catches all events of type error.
Syntax
<error cond="expression"
count="integer" />
Attributes
cond
An optional condition to test to see if the event is caught by this element. The defaults value is true.
count
The event count.
Children
<assign> <audio>, <clear>, <disconnect>, <enumerate>, <exit>, <goto>, <if>, <log>, <prompt>, <return>, <script>, and <submit>. <throw>, <valuegt;, <var>,
Parents
<field>, <form>, <initial>, <menu>, <object>, <record>, <subdialog>, and <transfer>. <vxml>,
Variables
_event
The _event shadow variable identifies the event name that caused the exception.
_message
The user-defined message from the event.
Example
The following example illustrates using example elements.
<error>
An error has occurred -- please call again later.
<exit/>
</error>
Version Information
Supported in: VoiceXML 1.0, VoiceXML 2.0, and VoiceXML 2.1.