Local scope

Local variables are unique because they do not allow a scope resolution modifier. It is for this reason that local variables are often referred to as anonymous. For example, a developer must use _message instead of local._message. Local variables can occur only within the following elements <catch>, <block>, and <filled>.

Note: Variables are cleared when the element completes execution.

_message

A message string that may provide additional context about the event being thrown. This variable can be populated from application code by setting the message or message attribute on those elements which throw events, for example, <throw>, <return>, <link>, and <choice>. The _message variable is only available within the scope of a <catch> element.

_event

The fully expanded event name. This variable, available only in the scope of a <catch> element, is most useful in scenarios where a single handler is responsible for multiple events.

_exception (Nuance extension)

If an event is generated in Java-space, this shadow variable contains the actual Java exception. This variable is available only within the scope of a <catch> element.