![]() |
|
![]() ![]() ![]() |
Working with Event Types > About Events > Try Catch Event Handling | |
![]() |
Try Catch Event Handling |
Try/Catch elements in the Data node will try to execute items under the Try item. To handle exceptions, add "Catch" items (under the parent Try).
By default, Catch <*> will catch all exceptions. Catch 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 Properties view. Currently this list contains:
A new variable caller 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.
![]() ![]() ![]() |
©2009, Avaya Inc. All rights reserved.
|