Oracle does not distinguish between errors originating from the server and errors generated within OCI itself. All errors are reported in the same manner, without classification. DBTools.h++ follows the Oracle error processing by always assigning the error code RWDBStatus::serverError. In all cases, the application's error handler will not be invoked unless there is an error.
The format of an RWDBStatus error report from an Oracle Server appears below. The RWDBStatus::message contents are obtained by converting the return code into the appropriate message through the oerhms() call of OCI.
errorCode: serverError.
message: "Server Error: %s", replacing %s with the text from the oerhms() call.
vendorMessage1: Name of the Oracle Server reporting the error, as initially provided by the application when RWDBDatabase is instantiated.
vendorMessage2: Unused.
vendorError1: Return code from the OCI library.
vendorError2: Operating system error code from the OCI library, or zero if there is no operating system error code.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.