![]() |
|
![]() ![]() ![]() |
Nodes and Palette Options > Detailed Palette Option Descriptions > Try | |
![]() |
Try![]() |
Type
Data item
Available from
Purpose
To try to execute one or more operation items. If any of the operations beneath the Try throw an exception, the Java exceptions can be caught 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 (Exception).
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 (Exception) item (includes the following data members: errorcode, message, object, stacktrace, and type).
Following is an example of the Try/Catch mechanism.
![]() ![]() ![]() |
©2009, Avaya Inc. All rights reserved.
|