summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-04-14 12:24:28 +0000
committerGordon Sim <gsim@apache.org>2010-04-14 12:24:28 +0000
commit75f9bc421b55d38d72b872347833e124fca57844 (patch)
tree944c095b8ae42b32eff9c52074a08e9867e2563b /cpp/src
parent888aec03c47dc4c064168a7a61244a6b7dcfcb81 (diff)
downloadqpid-python-75f9bc421b55d38d72b872347833e124fca57844.tar.gz
QPID-664: more specific exception handling (avoids reconnecting for invalid url)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@933924 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp b/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
index 7e5018fc5f..2ee9cf3fc0 100644
--- a/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
+++ b/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
@@ -255,7 +255,7 @@ bool ConnectionImpl::tryConnect(const std::vector<std::string>& urls)
}
QPID_LOG(info, "Connected to " << *i);
return true;
- } catch (const qpid::Exception& e) {
+ } catch (const qpid::ConnectionException& e) {
//TODO: need to fix timeout on
//qpid::client::Connection::open() so that it throws
//TransportFailure rather than a ConnectionException