libtabula::TypeLookupFailed Class Reference

Thrown from the C++ to SQL data type conversion routine when it can't figure out how to map the type. More...

#include <exceptions.h>

Inheritance diagram for libtabula::TypeLookupFailed:
Inheritance graph
[legend]
Collaboration diagram for libtabula::TypeLookupFailed:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TypeLookupFailed (const std::string &w)
 Create exception object.

Detailed Description

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.


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

Generated on 26 May 2014 for Libtabula by  doxygen 1.6.1