Catches error events thrown by the VoiceXML application or the VoiceGenie platform. The <error> element associates an error handler with a document, dialog (i.e. form or menu), or form item. It contains executable content. It is a shorthand notation for <catch event="error"> and catches all error events with a name whose prefix is "error". For example, error.badfetch and error.grammar.asr can be handled by this element.
|
|
Attribute |
Description |
|
count |
The count attribute allows you to handle different occurrences of the same error event differently. Each form, menu, and form item maintains a counter for each error event that occurs while it is being visited; these counters are reset each time the menu or form item's form is re-entered. When there are more than one |
|
cond |
An ECMAScript expression to be evaluated and used as a boolean condition. This |
Two anonymous variables are available within the scope of the <error> element:
<throw>, <choice>, <link>, or <return> element, or a platform defined value for error events thrown by the platform. If no message is specified, the value of this variable is ECMAScript undefined.Field Form Initial Menu Object Record Subdialog Transfer Vxml
Assign Audio Clear Data Disconnect Enumerate Exit ForEach Goto If Log Prompt Reprompt Return Script Submit Throw Value Var #PCDATA
None
None
|