PreviousNextIndex
Nodes and Palette Options > Detailed Palette Option Descriptions > Catch (VXML Events)
 
Catch (VXML Events)

Type

Event handler item

Available from

Purpose

The Catch event handler is a generic handler for events you create. Catch (VXML Events) catches VXML events that are thrown in the application or by the VXML platform.

Note:

Dialog Designer has built-in event handlers for most of the default VoiceXML events. The Catch event handler is designed to handle all other, custom, events. For more information about the built-in event handlers, see:

Behavior

Before you can use the Catch event handler, you must create the event for it to catch. You must also, somewhere in your application, within the scope of this event handler, use a Throw item.

The Catch event handler responds to a specified event anywhere within the scope of the handler. For example, if you place the Catch event handler in the AppRoot node, it acts as a global event handler for the specified events. It can catch these specified events no matter where in the application the events are thrown. If you place the Catch event handler in another node, however, it can catch the specified event only if it is thrown while in that node. If you place the Catch event handler underneath a node item, it can catch the specified event only if it is thrown within that node item.

A Catch event handler at the node item level overrides a Catch event handler at the node level. Likewise, a Catch event handler at the node level overrides a Catch event handler at the AppRoot, or global, level.

For more information about creating events, throwing events, and catching events, see Working with Event Types.

Examples for handling events:

  1. Catch (event="myEvent"), Return Event
  1. Catch (event="error.runtime"), Return Event, Throw (event="myReallyBadEvent", message="Something happened...")
  1. Catch ("error.badfetch"), Exit

Properties


PreviousNextIndex

©2009, Avaya Inc. All rights reserved.