diff options
author | methodus <methodus@web.de> | 2012-10-28 20:16:19 +0100 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-10-28 20:16:19 +0100 |
commit | 6dd746005c921dc2c49bf19a3524ea3bfb5e2d30 (patch) | |
tree | 876a7075f299982ef4c0eb188731349c357ad683 /include/db/exception.h | |
parent | 735900e78b42329b6548ff67612c672f5a3fdceb (diff) | |
download | vdr-plugin-upnp-6dd746005c921dc2c49bf19a3524ea3bfb5e2d30.tar.gz vdr-plugin-upnp-6dd746005c921dc2c49bf19a3524ea3bfb5e2d30.tar.bz2 |
Added database wrapper replacement for tntdb. Added a test_programm to verify its functionality.
Diffstat (limited to 'include/db/exception.h')
-rw-r--r-- | include/db/exception.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/db/exception.h b/include/db/exception.h new file mode 100644 index 0000000..47c99c8 --- /dev/null +++ b/include/db/exception.h @@ -0,0 +1,33 @@ +/* + * exception.h + * + * Created on: 28.10.2012 + * Author: savop + */ + +#ifndef EXCEPTION_H_ +#define EXCEPTION_H_ + +#include <exception> +#include <string> + +namespace db { + +class SQLiteException : public std::exception { +public: + SQLiteException(std::string msg) throw() + : message(msg) + {} + virtual ~SQLiteException() throw() {} + virtual const char* what() const throw() + { + return message.c_str(); + } +private: + std::string message; +}; + +} // namespace db + + +#endif /* EXCEPTION_H_ */ |