Remove dynamic exceptions
[anna.git] / source / dbms.mysql / Statement.cpp
index df18acc..3c38364 100644 (file)
@@ -34,7 +34,7 @@ dbms::mysql::Statement::~Statement() {
  *
  */
 void dbms::mysql::Statement::prepare(dbms::Connection* dbmsConnection)
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
   LOGMETHOD(TraceMethod tm("anna::dbms::mysql::Statement", "prepare", ANNA_FILE_LOCATION));
   Connection* connection(static_cast <Connection*>(dbmsConnection));
   //Database& dbms(static_cast <Database&>(connection->getDatabase()));
@@ -127,7 +127,7 @@ throw(RuntimeException, dbms::DatabaseException) {
 }
 
 dbms::ResultCode dbms::mysql::Statement::execute(dbms::Connection* dbmsConnection)
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
   //Connection* connection(static_cast <Connection*>(dbmsConnection));
 
   for(input_iterator ii = input_begin(), maxii = input_end(); ii != maxii; ii ++) {
@@ -148,7 +148,7 @@ throw(RuntimeException, dbms::DatabaseException) {
  * Según la información de http://dev.mysql.com/doc/refman/4.1/en/mysql-stmt-fetch.html
  */
 bool dbms::mysql::Statement::fetch()
-throw(RuntimeException, dbms::DatabaseException) {
+noexcept(false) {
   bool result = false;
 
   switch(mysql_stmt_fetch(a_mysqlStmt)) {
@@ -177,7 +177,7 @@ throw(RuntimeException, dbms::DatabaseException) {
 }
 
 st_mysql_bind* dbms::mysql::Statement::create(const int size, const char* whatis)
-throw(RuntimeException) {
+noexcept(false) {
   st_mysql_bind* result = NULL;
 
   if(size > 0) {