MySQL++  3.3.0
Classes
exceptions.h File Reference

Declares the MySQL++-specific exception classes. More...

#include "options.h"
#include <exception>
#include <string>
#include <sstream>
#include <typeinfo>

Go to the source code of this file.

Classes

class  mysqlpp::Exception
 Base class for all MySQL++ custom exceptions. More...
 
class  mysqlpp::BadConversion
 Exception thrown when a bad type conversion is attempted. More...
 
class  mysqlpp::BadFieldName
 Exception thrown when a requested named field doesn't exist. More...
 
class  mysqlpp::BadIndex
 Exception thrown when an object with operator [] or an at() method gets called with a bad index. More...
 
class  mysqlpp::BadOption
 Exception thrown when you pass an unrecognized option to Connection::set_option(). More...
 
class  mysqlpp::BadParamCount
 Exception thrown when not enough query parameters are provided. More...
 
class  mysqlpp::UseQueryError
 Exception thrown when something goes wrong in processing a "use" query. More...
 
class  mysqlpp::BadQuery
 Exception thrown when the database server encounters a problem while processing your query. More...
 
class  mysqlpp::ConnectionFailed
 Exception thrown when there is a problem related to the database server connection. More...
 
class  mysqlpp::DBSelectionFailed
 Exception thrown when the program tries to select a new database and the database server refuses for some reason. More...
 
class  mysqlpp::MutexFailed
 Exception thrown when a BeecryptMutex object fails. More...
 
class  mysqlpp::ObjectNotInitialized
 Exception thrown when you try to use an object that isn't completely initialized. More...
 
class  mysqlpp::SelfTestFailed
 Used within MySQL++'s test harness only. More...
 
class  mysqlpp::TypeLookupFailed
 Thrown from the C++ to SQL data type conversion routine when it can't figure out how to map the type. More...
 
class  mysqlpp::BadInsertPolicy
 Exception thrown when an insert policy is too strict to create a valid INSERT statement. More...
 

Detailed Description

Declares the MySQL++-specific exception classes.

When exceptions are enabled for a given mysqlpp::OptionalExceptions derivative, any of these exceptions can be thrown on error.