summaryrefslogtreecommitdiff
path: root/tests/test9.cpp
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-09-05 18:12:39 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-09-05 18:12:39 +0200
commit73a0556dca6ff98da2a77a34e75c5eec5969cd87 (patch)
tree5f092a4074192f4031d33cc50bc7142ea11fc14f /tests/test9.cpp
parent9a717577d06f00bb8a0c7338f7b687540b5e017d (diff)
downloadsqlitexx-73a0556dca6ff98da2a77a34e75c5eec5969cd87.tar.gz
sqlitexx-73a0556dca6ff98da2a77a34e75c5eec5969cd87.tar.bz2
revised exception hierarchy, following more the pqxx ideas
Diffstat (limited to 'tests/test9.cpp')
-rw-r--r--tests/test9.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test9.cpp b/tests/test9.cpp
index bbcddb6..7c217cf 100644
--- a/tests/test9.cpp
+++ b/tests/test9.cpp
@@ -73,7 +73,7 @@ static THREAD_FUNC_DECL produce( void *thread_data )
}
}
} catch( sql_error& e ) {
- cerr << "producer error, " << e.msg( ) << ": " << e.query( ) << endl;
+ cerr << "producer error, " << e.what( ) << ": " << e.query( ) << endl;
}
THREAD_FUNC_RETURN;
@@ -115,7 +115,7 @@ static THREAD_FUNC_DECL consume( void *thread_data )
}
}
} catch( sql_error& e ) {
- cerr << "consumer error, " << e.msg( ) << ": " << e.query( ) << endl;
+ cerr << "consumer error, " << e.what( ) << ": " << e.query( ) << endl;
}
THREAD_FUNC_RETURN;
@@ -158,7 +158,7 @@ int main( ) {
MUTEX_CLEANUP( cout_mutex );
} catch( sql_error& e ) {
- cerr << e.msg( ) << ": " << e.query( ) << endl;
+ cerr << e.what( ) << ": " << e.query( ) << endl;
}
}