View on GitHub API Documentation
A small C++ wrapper for the native C ODBC API.
Public Member Functions | List of all members
nanodbc::database_error Class Reference

General database error. More...

#include <nanodbc.h>

Inherits runtime_error.

Public Member Functions

 database_error (void *handle, short handle_type, const std::string &info="")
 Creates runtime_error with message about last ODBC error. More...

Detailed Description

See also
Exception types

Constructor & Destructor Documentation

◆ database_error()

nanodbc::database_error::database_error ( void *  handle,
short  handle_type,
const std::string &  info = "" 
handleThe native ODBC statement or connection handle.
handle_typeThe native ODBC handle type code for the given handle.
infoAdditional info that will be appended to the beginning of the error message.

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