libodbc++  0.2.5
Public Member Functions | Static Public Attributes | List of all members
odbc::SQLException Class Reference

The exception thrown when errors occur inside the library. More...

#include <types.h>

Inheritance diagram for odbc::SQLException:
odbc::SQLWarning

Public Member Functions

 SQLException (const std::string &reason=ODBCXX_STRING_CONST(""), const std::string &sqlState=ODBCXX_STRING_CONST(""), int vendorCode=0)
 Constructor.
 
 SQLException (const DriverMessage &dm)
 Copy from a DriverMessage.
 
virtual ~SQLException () throw ()
 Destructor.
 
int getErrorCode () const
 Get the vendor error code of this exception.
 
const std::string & getSQLState () const
 Gets the SQLSTATE of this exception.
 
const std::string & getMessage () const
 Gets the description of this message.
 
virtual const char * what () const throw ()
 Gets the description of this message.
 

Static Public Attributes

static const ODBCXX_CHAR_TYPE * scDEFSQLSTATE
 Default SQLSTATE for Exceptions.
 
static const std::string ssDEFSQLSTATE
 Default SQLSTATE for Exceptions.
 

Detailed Description

The exception thrown when errors occur inside the library.

Member Function Documentation

const std::string& odbc::SQLException::getSQLState ( ) const

Gets the SQLSTATE of this exception.

Consult your local ODBC reference for SQLSTATE values.


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

Go back to the libodbc++ homepage