Siebel eScript Language Reference > Methods Reference > Data Querying Methods >

Exception Object


If an operation fails, then the Siebel eScript engine creates an exception in the exception object.

Table 103 describes the arguments for the exception object.

Table 103. Arguments for Exception Objects
Argument
Description

errCode

Contains the error number.

errText

Contains a textual description of the error.

Example

The following example includes an exception object:

try
}
   var oBO = TheApplication().GetService("Incorrect name");
}
catch (e)
}
   var sText = e.errText;
   var nCode = e.errCode;
}

Siebel eScript Language Reference Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Legal Notices.