|
nanodbc
A small C++ wrapper for the native C ODBC API
|
General database error. More...
#include <nanodbc.h>


Public Member Functions | |
| database_error (void *handle, short handle_type, std::string const &info="") | |
| Creates runtime_error with message about last ODBC error. | |
| char const * | what () const noexcept override |
| Returns the full message, including the driver's own text. | |
| long | native () const noexcept |
| Returns the native error code reported by the driver. | |
| std::string const & | state () const noexcept |
| Returns the five character SQLSTATE reported by the driver. | |
General database error.
| nanodbc::database_error::database_error | ( | void * | handle, |
| short | handle_type, | ||
| std::string const & | info = "" |
||
| ) |
Creates runtime_error with message about last ODBC error.
| handle | The native ODBC statement or connection handle. |
| handle_type | The native ODBC handle type code for the given handle. |
| info | Additional info that will be appended to the beginning of the error message. |