Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

SQLDBC::SQLDBC_ErrorHndl Class Reference

#include <SQLDBC.h>

List of all members.


Detailed Description

Store for error messages and error codes.

Definition at line 83 of file SQLDBC.h.

Public Methods


Constructor & Destructor Documentation

SQLDBC::SQLDBC_ErrorHndl::SQLDBC_ErrorHndl  
 

The constructor for an SQLDBC_ErrorHndl object.

After construction the ErrorHndl object does not contain errors.


Member Function Documentation

const SQLDBC_Int4 SQLDBC::SQLDBC_ErrorHndl::getErrorCode   const
 

Returns the error code from the ErrorHndl object.

const char* SQLDBC::SQLDBC_ErrorHndl::getErrorText   const
 

Returns the error message stored in the ErrorHndl object.

Note:
This is an UTF8 string.

const char* SQLDBC::SQLDBC_ErrorHndl::getSQLState   const
 

Returns the SQL state from the ErrorHndl object.

SQLDBC::SQLDBC_ErrorHndl::operator SQLDBC_Bool   const
 

A Conversion operator.

Returns true if the ErrorHndl object contains an error. This operator makes it possible to write constructs as follows: if \(error\) { ... }.


Friends And Related Function Documentation

friend class SQLDBC_Connection [friend]
 

Connection to the database kernel.

This class combines the functions necesary for managing a connection to the database. If a new connection object is created, it is not connected. The connection to the database is established when a successful connect() call was performed.

Todo:
Check more parameters after connection (version).

Distribute the results of a COMMIT or ROLLBACK statment into dependent objects (for correct handling of PUTVAL commands).

Definition at line 126 of file SQLDBC.h.

friend class SQLDBC_ConnectionItem [friend]
 

Definition at line 124 of file SQLDBC.h.

friend struct SQLDBC_ConnectionItemStorage [friend]
 

Definition at line 125 of file SQLDBC.h.


The documentation for this class was generated from the following file: