From 287a41287ed26bcf481f087680cad56ed5ef9865 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Apr 2013 16:17:26 +0200 Subject: Add support for embedded schema migration --- odb/exceptions.hxx | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'odb/exceptions.hxx') diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx index e4d8292..3c1ac20 100644 --- a/odb/exceptions.hxx +++ b/odb/exceptions.hxx @@ -9,7 +9,7 @@ #include -#include // odb::core +#include // schema_version, odb::core #include #include @@ -189,6 +189,25 @@ namespace odb std::string what_; }; + struct LIBODB_EXPORT unknown_schema_version: exception + { + unknown_schema_version (schema_version); + ~unknown_schema_version () throw (); + + schema_version + version () const + { + return version_; + } + + virtual const char* + what () const throw (); + + private: + schema_version version_; + std::string what_; + }; + namespace common { using odb::null_pointer; @@ -215,6 +234,7 @@ namespace odb using odb::no_type_info; using odb::unknown_schema; + using odb::unknown_schema_version; } } -- cgit v1.1