diff options
Diffstat (limited to 'odb/exceptions.cxx')
-rw-r--r-- | odb/exceptions.cxx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/odb/exceptions.cxx b/odb/exceptions.cxx index d86657c..b27cc37 100644 --- a/odb/exceptions.cxx +++ b/odb/exceptions.cxx @@ -7,4 +7,39 @@ namespace odb { + const char* already_in_transaction:: + what () const throw () + { + return "transaction already in progress in this thread"; + } + + const char* not_in_transaction:: + what () const throw () + { + return "operation can only be performed in transaction"; + } + + const char* transaction_already_finilized:: + what () const throw () + { + return "transaction already committed or rolled back"; + } + + const char* deadlock:: + what () const throw () + { + return "transaction aborted due to deadlock"; + } + + const char* object_not_persistent:: + what () const throw () + { + return "object not persistent"; + } + + const char* object_already_persistent:: + what () const throw () + { + return "object already persistent"; + } } |