aboutsummaryrefslogtreecommitdiff
path: root/odb/exceptions.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:48:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-23 16:48:00 +0200
commit1896d36996ab48ed7271e855d7e32b4e61f64896 (patch)
tree6d085eb0349d23bc26fe101b2451235939f17d40 /odb/exceptions.hxx
parentc2be6303f97e470960ee77805128c46d3ea5c102 (diff)
Polymorphic inheritance support
Diffstat (limited to 'odb/exceptions.hxx')
-rw-r--r--odb/exceptions.hxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx
index b55b2a4..9e37967 100644
--- a/odb/exceptions.hxx
+++ b/odb/exceptions.hxx
@@ -113,6 +113,20 @@ namespace odb
{
};
+ // Polymorphism support exceptions.
+ //
+ struct LIBODB_EXPORT abstract_class: exception
+ {
+ virtual const char*
+ what () const throw ();
+ };
+
+ struct LIBODB_EXPORT no_type_info: exception
+ {
+ virtual const char*
+ what () const throw ();
+ };
+
// Schema catalog exceptions.
//
struct LIBODB_EXPORT unknown_schema: exception
@@ -156,6 +170,9 @@ namespace odb
using odb::result_not_cached;
using odb::database_exception;
+ using odb::abstract_class;
+ using odb::no_type_info;
+
using odb::unknown_schema;
}
}