From 73a0556dca6ff98da2a77a34e75c5eec5969cd87 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 5 Sep 2010 18:12:39 +0200 Subject: revised exception hierarchy, following more the pqxx ideas --- tests/test2.cpp | 2 +- tests/test3.cpp | 2 +- tests/test4.cpp | 2 +- tests/test5.cpp | 2 +- tests/test6.cpp | 2 +- tests/test7.cpp | 2 +- tests/test8.cpp | 2 +- tests/test9.cpp | 6 +++--- 8 files changed, 10 insertions(+), 10 deletions(-) (limited to 'tests') diff --git a/tests/test2.cpp b/tests/test2.cpp index 95b0f0a..349c159 100644 --- a/tests/test2.cpp +++ b/tests/test2.cpp @@ -67,6 +67,6 @@ int main( ) { cout << "end." << endl; } catch( sql_error& e ) { - cerr << e.msg( ) << ": " << e.query( ) << endl; + cerr << e.what( ) << ": " << e.query( ) << endl; } } diff --git a/tests/test3.cpp b/tests/test3.cpp index 16ce68f..e5ac76c 100644 --- a/tests/test3.cpp +++ b/tests/test3.cpp @@ -97,6 +97,6 @@ int main( ) { cout << "end." << endl; } catch( sql_error& e ) { - cerr << e.msg( ) << ": " << e.query( ) << endl; + cerr << e.what( ) << ": " << e.query( ) << endl; } } diff --git a/tests/test4.cpp b/tests/test4.cpp index b9dd69e..43ac207 100644 --- a/tests/test4.cpp +++ b/tests/test4.cpp @@ -73,6 +73,6 @@ int main( ) { cout << "end." << endl; } catch( sql_error& e ) { - cerr << e.msg( ) << ": " << e.query( ) << endl; + cerr << e.what( ) << ": " << e.query( ) << endl; } } diff --git a/tests/test5.cpp b/tests/test5.cpp index e67c4ad..6f550b4 100644 --- a/tests/test5.cpp +++ b/tests/test5.cpp @@ -44,6 +44,6 @@ int main( ) { cout << "end." << endl; } catch( sql_error& e ) { - cerr << e.msg( ) << ": " << e.query( ) << endl; + cerr << e.what( ) << ": " << e.query( ) << endl; } } diff --git a/tests/test6.cpp b/tests/test6.cpp index d8837f1..2dfb61c 100644 --- a/tests/test6.cpp +++ b/tests/test6.cpp @@ -63,6 +63,6 @@ int main( ) { cout << "end." << endl; } catch( sql_error& e ) { - cerr << e.msg( ) << ": " << e.query( ) << endl; + cerr << e.what( ) << ": " << e.query( ) << endl; } } diff --git a/tests/test7.cpp b/tests/test7.cpp index a4ad588..65f2438 100644 --- a/tests/test7.cpp +++ b/tests/test7.cpp @@ -72,6 +72,6 @@ int main( ) { cout << "end." << endl; } catch( sql_error& e ) { - cerr << e.msg( ) << ": " << e.query( ) << endl; + cerr << e.what( ) << ": " << e.query( ) << endl; } } diff --git a/tests/test8.cpp b/tests/test8.cpp index c4a5ae8..2bf59b0 100644 --- a/tests/test8.cpp +++ b/tests/test8.cpp @@ -95,6 +95,6 @@ int main( ) { cout << "end." << endl; } catch( sql_error& e ) { - cerr << e.msg( ) << ": " << e.query( ) << endl; + cerr << e.what( ) << ": " << e.query( ) << endl; } } 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; } } -- cgit v1.2.3-54-g00ecf