iTP Active Transaction Pages (iTP ATP) Programmer's Guide

ATP Objects, Properties, and Methods
iTP Active Transaction Pages (iTP ATP) Programmer’s Guide522292-002
4-14
ATPException Object
ATPException Object
The ATPException object contains error information defined by the ATP objects, such as
Inet.HTTP and XML.DOMDocument. The ATPException object is thrown when the
ATP page is unable to recover from an error while executing scripts. It is recommended
to use try-catch clauses to recover from run-time errors by checking the information
provided by the ATPException object.
Table 4-3
summarizes the properties of the ATPException object.
Properties
code
Contains the error number. Each ATP object defines the possible values and
meanings. Different ATP objects may define the same value for different meanings.
You can check the module and method to determine where the exception is thrown.
Remarks
Integer. Read-only.
Syntax
nErrorCode = oException.code
detail
Contains the detail error number. Each ATP object defines the possible values and
meanings. The same ATP object may define different error codes with the same
error detail numbers. You should check the code property before checking the detail
property.
Remarks
Integer. Read-only.
Syntax
nErrorDetail = oException.detail
Table 4-3. Properties of the ATPException Object
Properties Description
code Contains the error number.
detail Contains the detail error number.
description Contains the error description in a text string.
module Contains the module name where the error is thrown.
method Contains the method name where the error is thrown.