Thrown from the C++ to SQL data type conversion routine when it can't figure out how to map the type. More...
Public Member Functions
|TypeLookupFailed (const std::string &w)|
|Create exception object. |
Thrown from the C++ to SQL data type conversion routine when it can't figure out how to map the type.
This exception is not optional. The only alternatives when this happens are equally drastic: basically, either iterate past the end of an array (crashing the program) or call assert() to crash the program nicely. At least this way you have some control over how your program ends. You can even ignore the error and keep on going: this typically happens when building a SQL query, so you can handle it just the same as if the subsequent query execution failed.