31 #if !defined(MYSQLPP_EXCEPTIONS_H) 
   32 #define MYSQLPP_EXCEPTIONS_H 
   45 class MYSQLPP_EXPORT 
Exception : 
public std::exception
 
   66         virtual const char* 
what() 
const throw()
 
  107                         size_t r, 
size_t a) :
 
  114                 what_ += d ? d : 
"<NULL>";
 
  115                 what_ += 
"\" incompatible with \"";
 
  128                                   const char* d, 
size_t r, 
size_t a) :
 
  144         type_name(
"unknown"),
 
  168         Exception(std::string(
"Unknown field name: ") + bad_field)
 
  188         explicit BadIndex(
const char* what, 
int bad_index, 
int max_index) :
 
  191                 std::ostringstream outs;
 
  192                 outs << 
"Index " << bad_index << 
" on " << what <<
 
  193                                 " out of range, max legal index is " << max_index;
 
  209         explicit BadOption(
const char* w, 
const std::type_info& ti) :
 
  216         explicit BadOption(
const std::string& w, 
const std::type_info& ti) :
 
  229         const std::type_info& ti_;
 
  302         explicit BadQuery(
const std::string& w, 
int e = 0) :
 
  469 #endif // !defined(MYSQLPP_EXCEPTIONS_H) 
BadOption(const char *w, const std::type_info &ti)
Create exception object, taking C string. 
Definition: exceptions.h:209
Exception thrown when a requested named field doesn't exist. 
Definition: exceptions.h:161
BadIndex(const char *what, int bad_index, int max_index)
Create exception object. 
Definition: exceptions.h:188
Exception thrown when the database server encounters a problem while processing your query...
Definition: exceptions.h:285
BadQuery(const char *w="", int e=0)
Create exception object. 
Definition: exceptions.h:292
Exception thrown when you try to use an object that isn't completely initialized. ...
Definition: exceptions.h:403
Exception thrown when a BeecryptMutex object fails. 
Definition: exceptions.h:389
ConnectionFailed(const char *w="", int e=0)
Create exception object. 
Definition: exceptions.h:335
SelfTestFailed(const std::string &w)
Create exception object. 
Definition: exceptions.h:420
~BadIndex()
Destroy exception. 
Definition: exceptions.h:198
Exception thrown when an object with operator [] or an at() method gets called with a bad index...
Definition: exceptions.h:180
BadInsertPolicy(const std::string &w)
Create exception object. 
Definition: exceptions.h:460
std::string data
string form of data we tried to convert 
Definition: exceptions.h:95
BadConversion(const char *w="")
Create exception object, with error string only. 
Definition: exceptions.h:142
BadQuery(const std::string &w, int e=0)
Create exception object. 
Definition: exceptions.h:302
Used within MySQL++'s test harness only. 
Definition: exceptions.h:416
BadFieldName(const char *bad_field)
Create exception object. 
Definition: exceptions.h:167
virtual const char * what() const 
Returns explanation of why exception was thrown. 
Definition: exceptions.h:66
~Exception()
Destroy exception object. 
Definition: exceptions.h:63
DBSelectionFailed(const char *w="", int e=0)
Create exception object. 
Definition: exceptions.h:366
size_t retrieved
documentation needed! 
Definition: exceptions.h:96
Exception thrown when there is a problem related to the database server connection. 
Definition: exceptions.h:328
~BadFieldName()
Destroy exception. 
Definition: exceptions.h:173
Thrown from the C++ to SQL data type conversion routine when it can't figure out how to map the type...
Definition: exceptions.h:438
ObjectNotInitialized(const char *w="")
Create exception object. 
Definition: exceptions.h:407
Exception(const char *w="")
Create exception object. 
Definition: exceptions.h:73
int errnum() const 
Return the error number corresponding to the error message returned by what(), if any...
Definition: exceptions.h:349
std::string what_
explanation of why exception was thrown 
Definition: exceptions.h:85
~BadConversion()
Destroy exception. 
Definition: exceptions.h:152
BadParamCount(const char *w="")
Create exception object. 
Definition: exceptions.h:242
BadConversion(const char *tn, const char *d, size_t r, size_t a)
Create exception object, building error string dynamically. 
Definition: exceptions.h:106
Base class for all MySQL++ custom exceptions. 
Definition: exceptions.h:45
const char * type_name
name of type we tried to convert to 
Definition: exceptions.h:94
MutexFailed(const char *w="lock failed")
Create exception object. 
Definition: exceptions.h:393
Exception & operator=(const Exception &rhs)
Assign another exception object's contents to this one. 
Definition: exceptions.h:56
int errnum() const 
Return the error number corresponding to the error message returned by what() 
Definition: exceptions.h:314
TypeLookupFailed(const std::string &w)
Create exception object. 
Definition: exceptions.h:442
Exception thrown when not enough query parameters are provided. 
Definition: exceptions.h:238
~BadParamCount()
Destroy exception. 
Definition: exceptions.h:248
Exception thrown when an insert policy is too strict to create a valid INSERT statement. 
Definition: exceptions.h:456
BadOption(const std::string &w, const std::type_info &ti)
Create exception object, taking C++ string. 
Definition: exceptions.h:216
Exception(const Exception &e)
Create exception object as copy of another. 
Definition: exceptions.h:49
int errnum() const 
Return the error number corresponding to the error message returned by what(), if any...
Definition: exceptions.h:380
BadConversion(const std::string &w, const char *tn, const char *d, size_t r, size_t a)
Create exception object, given completed error string. 
Definition: exceptions.h:127
Exception thrown when a bad type conversion is attempted. 
Definition: exceptions.h:91
Declares the Option class hierarchy, used to implement connection options in Connection and DBDriver ...
size_t actual_size
documentation needed! 
Definition: exceptions.h:97
Exception thrown when something goes wrong in processing a "use" query. 
Definition: exceptions.h:254
Exception thrown when the program tries to select a new database and the database server refuses for ...
Definition: exceptions.h:359
Exception thrown when you pass an unrecognized option to Connection::set_option(). 
Definition: exceptions.h:205
UseQueryError(const char *w="")
Create exception object. 
Definition: exceptions.h:258
Exception(const std::string &w)
Create exception object. 
Definition: exceptions.h:79
const std::type_info & what_option() const 
Return type information about the option that failed. 
Definition: exceptions.h:226