Errors and Warnings > Diagnostic Class
 
Diagnostic Class
The IldDiagnostic class contains information about the context of an error or warning. The following items are described:
*Accessing a Diagnostic Instance
*Context Information
Accessing a Diagnostic Instance
The information provided by a given instance of IldDiagnostic is relevant only if the function IldIldBase::isErrorRaised or IldIldBase::isInformationRaised:
*has been called before the function IldIldBase::getError or IldIldBase::getInformation, respectively, and
*returned IlTrue.
Otherwise, the IldIldBase::getError or IldIldBase::getInformation function may return either null or an instance of IldDiagnostic whose contents are irrelevant.
If any context information items need to be kept, the application must copy the corresponding values into its own memory space because the contents of the IldDiagnostic object might be overwritten during subsequent execution of a query.
Context Information
The object contains the following information items about the context in which it was created or filled:
*Code: This number can originate from Rogue Wave® DB Link or from the server.
*Native code of the error: When the error is raised by Rogue Wave DB Link, it is set to 0. Otherwise, it has the same value as the code.
*Function code: The Rogue Wave DB Link symbolic code for the function in which the error was raised.
*Origin: The layer that raised the error.
*sqlstate: Either the value returned by the server, the value set by Rogue Wave DB Link, or no value at all.
*Message text: The text associated with the error.

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.