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

Type

Data Node exception handler

Available from

Data Node

Purpose

To catch Java exceptions that are thrown at runtime.

Behavior

Try/Catch items in the Data Node will try to execute items under the Try item. To handle exceptions, add Catch (Exception) items (under the parent Try). For every Try item, you need at least one Catch.

By default, Catch (Exception) will catch all exceptions. Catch (Exception) can also be used to catch specific exception types for handling specific errors differently. Comma separated exception types can also be specified for catching different exception types, but handling them in the same way.

List of common exceptions are provided in the Avaya Properties view. Currently this list contains:

A new variable called ddLastException automatically captures the exception caught by a Catch item (includes the following data members: errorcode, message, object, stacktrace, and type).

Following is an example of the Try/Catch mechanism.


PreviousNextIndex

©2009, Avaya Inc. All rights reserved.