diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-01 11:56:33 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-01 11:56:33 +0200 |
commit | bb2358220adfe274b54d9b155205b60ddfe625c6 (patch) | |
tree | f8822c33ff25a0a9058ce92ce3a8716343a399f0 /odb/exceptions.hxx | |
parent | 1233c11bf05cc3a039afa548faf06f3610f24269 (diff) |
Add support for embedded database schemas
New options: --schema-format, --default-schema. New example: schema/embedded.
Diffstat (limited to 'odb/exceptions.hxx')
-rw-r--r-- | odb/exceptions.hxx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx index 1185876..b1e4711 100644 --- a/odb/exceptions.hxx +++ b/odb/exceptions.hxx @@ -8,6 +8,8 @@ #include <odb/pre.hxx> +#include <string> + #include <odb/exception.hxx> #include <odb/details/export.hxx> @@ -106,6 +108,27 @@ namespace odb { }; + // Schema catalog exceptions. + // + struct LIBODB_EXPORT unknown_schema: exception + { + unknown_schema (const std::string& name); + ~unknown_schema () throw (); + + const std::string& + name () const + { + return name_; + } + + virtual const char* + what () const throw (); + + private: + std::string name_; + std::string what_; + }; + namespace core { using odb::null_pointer; @@ -126,6 +149,8 @@ namespace odb using odb::object_already_persistent; using odb::result_not_cached; using odb::database_exception; + + using odb::unknown_schema; } } |