libodbc++  0.2.5
Public Member Functions | List of all members
odbc::SQLWarning Class Reference

Represents an SQL warning. More...

#include <types.h>

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

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.
 
- Public Member Functions inherited from odbc::SQLException
 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.
 

Additional Inherited Members

- Static Public Attributes inherited from odbc::SQLException
static const ODBCXX_CHAR_TYPE * scDEFSQLSTATE
 Default SQLSTATE for Exceptions.
 
static const std::string ssDEFSQLSTATE
 Default SQLSTATE for Exceptions.
 

Detailed Description

Represents an SQL warning.

Contains the same info as an SQLException.


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

Go back to the libodbc++ homepage