diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-13 14:58:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-13 14:58:52 +0200 |
commit | f7bf16d50f6f08c66b1bae35e2dab327d560b0f3 (patch) | |
tree | de7e3e7bc63aeba11a3c782b3c55c51b4d6b2001 /odb/exceptions.hxx | |
parent | 0634ddb1f04489b8fe26d131ee216dec0a47a28d (diff) |
Make odb::exception abstract
Implement what() in concrete exceptions.
Diffstat (limited to 'odb/exceptions.hxx')
-rw-r--r-- | odb/exceptions.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/odb/exceptions.hxx b/odb/exceptions.hxx index ff97873..8c9e826 100644 --- a/odb/exceptions.hxx +++ b/odb/exceptions.hxx @@ -16,26 +16,38 @@ namespace odb { struct LIBODB_EXPORT already_in_transaction: odb::exception { + virtual const char* + what () const throw (); }; struct LIBODB_EXPORT not_in_transaction: odb::exception { + virtual const char* + what () const throw (); }; struct LIBODB_EXPORT transaction_already_finilized: odb::exception { + virtual const char* + what () const throw (); }; struct LIBODB_EXPORT deadlock: odb::exception { + virtual const char* + what () const throw (); }; struct LIBODB_EXPORT object_not_persistent: odb::exception { + virtual const char* + what () const throw (); }; struct LIBODB_EXPORT object_already_persistent: odb::exception { + virtual const char* + what () const throw (); }; struct LIBODB_EXPORT database_exception: odb::exception |