The ITErrorInfo interface

Base class: ITEssential

The functionality provided by this class is only supported with HCL Informix® databases.

Extracts information about an error from an object. Some value objects, such as sets and large objects, can produce SQL errors, because SQL operations might be used to get the actual data values. If a value object can produce an SQL error, the value object supports the ITErrorInfo interface to enable the application to access the SQL error.

This interface provides the following methods.
Method Description
ITBool Error() Returns TRUE if an error occurred.
const ITString & SqlState() Returns the ISO-standard SQL error code.
const ITString & ErrorText() Returns the error message.

For an example of the use of this value object, see the loex2.cpp example application.