summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/echo_service.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-06-14 13:03:22 +0000
committerAlan Conway <aconway@apache.org>2007-06-14 13:03:22 +0000
commitcd16b39d7a138d4ff08a25bfe62f9e682a000aec (patch)
treec6d3b71e860f321879206904681543cac340b8de /qpid/cpp/src/tests/echo_service.cpp
parent31f720ecc6bed95ffa6b7205f70614077dc3f513 (diff)
downloadqpid-python-cd16b39d7a138d4ff08a25bfe62f9e682a000aec.tar.gz
Fixed catch clauses to catch by const & and use std::exception for
"generic" catches. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@547241 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/echo_service.cpp')
-rw-r--r--qpid/cpp/src/tests/echo_service.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/echo_service.cpp b/qpid/cpp/src/tests/echo_service.cpp
index 09cf1e01bb..c4f1f0477a 100644
--- a/qpid/cpp/src/tests/echo_service.cpp
+++ b/qpid/cpp/src/tests/echo_service.cpp
@@ -135,7 +135,7 @@ int main(int argc, char** argv){
}
connection.close();
- } catch(qpid::QpidError error) {
+ } catch(std::exception& error) {
std::cout << error.what() << std::endl;
}
} else {
@@ -164,7 +164,7 @@ int main(int argc, char** argv){
channel.run();
connection.close();
- } catch(qpid::QpidError error) {
+ } catch(std::exception& error) {
std::cout << error.what() << std::endl;
}
}