diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2010-09-05 18:12:39 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2010-09-05 18:12:39 +0200 |
commit | 73a0556dca6ff98da2a77a34e75c5eec5969cd87 (patch) | |
tree | 5f092a4074192f4031d33cc50bc7142ea11fc14f /tests | |
parent | 9a717577d06f00bb8a0c7338f7b687540b5e017d (diff) | |
download | sqlitexx-73a0556dca6ff98da2a77a34e75c5eec5969cd87.tar.gz sqlitexx-73a0556dca6ff98da2a77a34e75c5eec5969cd87.tar.bz2 |
revised exception hierarchy, following more the pqxx ideas
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test2.cpp | 2 | ||||
-rw-r--r-- | tests/test3.cpp | 2 | ||||
-rw-r--r-- | tests/test4.cpp | 2 | ||||
-rw-r--r-- | tests/test5.cpp | 2 | ||||
-rw-r--r-- | tests/test6.cpp | 2 | ||||
-rw-r--r-- | tests/test7.cpp | 2 | ||||
-rw-r--r-- | tests/test8.cpp | 2 | ||||
-rw-r--r-- | tests/test9.cpp | 6 |
8 files changed, 10 insertions, 10 deletions
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; } } |