summaryrefslogtreecommitdiff
path: root/cpp
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
commit73dc0b7e2842e2f1b2aa193644c82c09a9603001 (patch)
tree944c095b8ae42b32eff9c52074a08e9867e2563b /cpp
parentcff3c1572ef3e10148e2b7dfde7325d977892474 (diff)
downloadqpid-python-73dc0b7e2842e2f1b2aa193644c82c09a9603001.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')
-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