libodbc++
0.2.5
|
Represents an SQL warning. More...
#include <types.h>
Public Member Functions | |
SQLWarning (const std::string &reason=ODBCXX_STRING_CONST(""), const std::string &sqlState=ODBCXX_STRING_CONST(""), int vendorCode=0) | |
Constructor. | |
SQLWarning (const DriverMessage &dm) | |
Copy from a DriverMessage. | |
virtual | ~SQLWarning () throw () |
Destructor. | |
![]() | |
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. | |
Additional Inherited Members | |
![]() | |
static const ODBCXX_CHAR_TYPE * | scDEFSQLSTATE |
Default SQLSTATE for Exceptions. | |
static const std::string | ssDEFSQLSTATE |
Default SQLSTATE for Exceptions. | |
Represents an SQL warning.
Contains the same info as an SQLException.