libodbc++
0.2.5
|
The exception thrown when errors occur inside the library. More...
#include <types.h>
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. More... | |
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. | |
The exception thrown when errors occur inside the library.
const std::string& odbc::SQLException::getSQLState | ( | ) | const |
Gets the SQLSTATE of this exception.
Consult your local ODBC reference for SQLSTATE values.