MySQL++  3.2.5
Public Member Functions | List of all members
mysqlpp::BadIndex Class Reference

Exception thrown when an object with operator [] or an at() method gets called with a bad index. More...

#include <exceptions.h>

Inheritance diagram for mysqlpp::BadIndex:
Inheritance graph
[legend]
Collaboration diagram for mysqlpp::BadIndex:
Collaboration graph
[legend]

Public Member Functions

 BadIndex (const char *what, int bad_index, int max_index)
 Create exception object. More...
 
 ~BadIndex () throw ()
 Destroy exception.
 
- Public Member Functions inherited from mysqlpp::Exception
 Exception (const Exception &e) MAY_THROW()
 Create exception object as copy of another.
 
Exceptionoperator= (const Exception &rhs) throw ()
 Assign another exception object's contents to this one.
 
 ~Exception () throw ()
 Destroy exception object.
 
virtual const char * what () const throw ()
 Returns explanation of why exception was thrown.
 

Additional Inherited Members

- Protected Member Functions inherited from mysqlpp::Exception
 Exception (const char *w="") throw ()
 Create exception object.
 
 Exception (const std::string &w) throw ()
 Create exception object.
 
- Protected Attributes inherited from mysqlpp::Exception
std::string what_
 explanation of why exception was thrown
 

Detailed Description

Exception thrown when an object with operator [] or an at() method gets called with a bad index.

Constructor & Destructor Documentation

◆ BadIndex()

mysqlpp::BadIndex::BadIndex ( const char *  what,
int  bad_index,
int  max_index 
)
inlineexplicit

Create exception object.

Parameters
whattype of object bad index tried on
bad_indexindex value the container didn't like
max_indexlargest legal index value for container

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