Plum DEV Documentation


This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
voicexml:tags:error [2014/05/21 13:24]
adam [<error>]
voicexml:tags:error [2014/05/21 13:26]
adam [Example]
Line 12: Line 12:
 ====Example==== ====Example====
 <​code>​ <​code>​
 <?xml version="​1.0"?>​ <?xml version="​1.0"?>​
Line 17: Line 18:
   <​form>​   <​form>​
     <​block>​     <​block>​
-      <throw event="​error"​ message="oh no, there was an error."/>​+      <prompt>​ 
 +      Hello. Let's move to another script. 
 +      </​prompt>​ 
 +      <goto next="nonexistant_file.php"/>
     </​block>​     </​block>​
-    <!-- The "​error"​ tag is shorthand for a "​catch"​ tag that catches an --> 
-    <!-- event named "​error"​. --> 
     <​error>​     <​error>​
       <​prompt>​       <​prompt>​
-        Caught my error event with the following message: +      A serious ​error of type error.badfetch has occurred. Exiting.
-        <break time="​1s"/>​ +
-        <value expr="​_message"/>​+
       </​prompt>​       </​prompt>​
 +      <​exit/>​
     </​error>​     </​error>​
   </​form>​   </​form>​
 </​vxml>​ </​vxml>​
 </​code>​ </​code>​
 +This script mimics the default functionality for when the IVR fails to fetch a remote file. \\
 The output of the above script would be: The output of the above script would be:
-Computer: ​Caught my error event with the following message: ​\\ +Computer: ​Hello. Let's move to another script. ​\\ 
-Computer: ​oh no, there was an error.+Computer: ​A serious error of type error.badfetch has occurred. Exiting. \\