Accessing Error Information at the Automation Level

Meta Data Services Programming

Meta Data Services Programming

Accessing Error Information at the Automation Level

When a repository interface member generates an error, Automation programs can access the repository error object to obtain error information. For more information about the repository error object, see REPOSERROR Data Structure.

Visual Basic

In Microsoft® Visual Basic®, you use the global Err object to handle errors. The first error in a repository error queue is the error that is placed into the Err object. For each error, you can use the On Error statement to invoke an error handler when an error is encountered. In the error handler, access the properties of the global Err object to retrieve the error information. Only the first error in the repository error queue is accessible through the Err object. For more information about the global Err object, see the Visual Basic documentation.

Script Objects

A predefined variable for script objects, ReposErr, can be used to report a result and an error description that you provide. ReposErr enables you to create an error to return to the calling application.

See Also

Accessing Error Information at the COM Level

Handling Errors

ScriptDef Object