Remove dynamic exceptions
[anna.git] / source / dbms.oracle / Connection.cpp
index b3cea7a..a556705 100644 (file)
@@ -29,7 +29,7 @@ oracle::Connection::Connection(Database& database, const std::string& name, cons
 }
 
 void oracle::Connection::open()
-throw(dbms::DatabaseException) {
+noexcept(false) {
   OCIError* error = a_oracleDatabase.getErrorHandler();
 
   if(a_context != NULL) {
@@ -80,7 +80,7 @@ throw(dbms::DatabaseException) {
 }
 
 void oracle::Connection::close()
-throw() {
+{
   OCIError* error = a_oracleDatabase.getErrorHandler();
 
   try {
@@ -117,13 +117,13 @@ throw() {
 }
 
 void oracle::Connection::do_commit()
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
   OCIError* error = a_oracleDatabase.getErrorHandler();
   anna_dbms_oracle_check(OCITransCommit(a_context, error, 0), error);
 }
 
 void oracle::Connection::do_rollback()
-throw() {
+{
   try {
     OCIError* error = a_oracleDatabase.getErrorHandler();
     anna_dbms_oracle_check(OCITransRollback(a_context, error, 0), error);
@@ -133,7 +133,7 @@ throw() {
 }
 
 string oracle::Connection::asString() const
-throw() {
+{
   string result("dbms::oracle::Connection { ");
   result += dbms::Connection::asString();
   result += " | Context: ";