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

SQLDBC::SQLDBC_ErrorHndl Class Reference

List of all members.

Detailed Description

Store for error messages and error codes.

Definition at line 217 of file SQLDBC.h.

Public Member Functions


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\) { ... }.