aboutsummaryrefslogtreecommitdiff
path: root/odb/exceptions.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-05-06 12:05:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-08-14 15:18:23 +0200
commit91830e3bd38a05c73d03a5dfb88997799d44274b (patch)
tree399f1fc61ce959ac63b8b7ebaf5e3c58f80d8a7d /odb/exceptions.cxx
parent72b262ee4f375089256f6438152bd323df1ff5a3 (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.cxx')
-rw-r--r--odb/exceptions.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/odb/exceptions.cxx b/odb/exceptions.cxx
index 1ee17e5..a5292bc 100644
--- a/odb/exceptions.cxx
+++ b/odb/exceptions.cxx
@@ -185,4 +185,16 @@ namespace odb
{
return what_.c_str ();
}
+
+ const char* section_not_loaded::
+ what () const throw ()
+ {
+ return "section is not loaded";
+ }
+
+ const char* section_not_in_object::
+ what () const throw ()
+ {
+ return "section instance is not part of an object (section was copied?)";
+ }
}