From f7bf16d50f6f08c66b1bae35e2dab327d560b0f3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Sep 2010 14:58:52 +0200 Subject: Make odb::exception abstract Implement what() in concrete exceptions. --- odb/exceptions.hxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'odb/exceptions.hxx') 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 -- cgit v1.1