diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-01 14:36:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-12-01 14:36:39 +0200 |
commit | d2b7cfe47694cef008949255426cc57ab9a8e18a (patch) | |
tree | 8a7dc87cd025190e16fb6d351061c6392255f3d8 /odb/exceptions.hxx | |
parent | b94c9903fc73a8ce7e1ff985bba0279bcd518c3b (diff) |
Implement not_null pointer pragma
New exception: null_pointer.
Diffstat (limited to 'odb/exceptions.hxx')
-rw-r--r-- | odb/exceptions.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx index 26550cb..eaf8ec8 100644 --- a/odb/exceptions.hxx +++ b/odb/exceptions.hxx @@ -14,6 +14,12 @@ namespace odb { + struct LIBODB_EXPORT null_pointer: odb::exception + { + virtual const char* + what () const throw (); + }; + // Transaction exceptions. // struct LIBODB_EXPORT already_in_transaction: odb::exception |