diff options
author | Alan Conway <aconway@apache.org> | 2007-06-14 13:03:22 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2007-06-14 13:03:22 +0000 |
commit | 5c52a1984357b3f0145eac2d146d44cb8e41afb4 (patch) | |
tree | aec5e46465d94bcf5b1d76660b077491bd117203 /cpp/src/tests/echo_service.cpp | |
parent | b3747b9e1a5090a5eea0ac067b94d259f17ee09a (diff) | |
download | qpid-python-5c52a1984357b3f0145eac2d146d44cb8e41afb4.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/qpid@547241 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/tests/echo_service.cpp')
-rw-r--r-- | cpp/src/tests/echo_service.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/tests/echo_service.cpp b/cpp/src/tests/echo_service.cpp index 09cf1e01bb..c4f1f0477a 100644 --- a/cpp/src/tests/echo_service.cpp +++ b/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; } } |