diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-05-06 12:05:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-14 15:18:23 +0200 |
commit | 91830e3bd38a05c73d03a5dfb88997799d44274b (patch) | |
tree | 399f1fc61ce959ac63b8b7ebaf5e3c58f80d8a7d /odb/exceptions.hxx | |
parent | 72b262ee4f375089256f6438152bd323df1ff5a3 (diff) |
Add support for object sections
Sections are an optimization mechanism that allows the partitioning of
data members of a persistent class into groups that can be separately
loaded and/or updated.
Diffstat (limited to 'odb/exceptions.hxx')
-rw-r--r-- | odb/exceptions.hxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx index 2cefea7..14f4f86 100644 --- a/odb/exceptions.hxx +++ b/odb/exceptions.hxx @@ -208,6 +208,20 @@ namespace odb std::string what_; }; + // Section exceptions. + // + struct LIBODB_EXPORT section_not_loaded: odb::exception + { + virtual const char* + what () const throw (); + }; + + struct LIBODB_EXPORT section_not_in_object: odb::exception + { + virtual const char* + what () const throw (); + }; + namespace common { using odb::null_pointer; @@ -235,6 +249,9 @@ namespace odb using odb::unknown_schema; using odb::unknown_schema_version; + + using odb::section_not_loaded; + using odb::section_not_in_object; } } |