summaryrefslogtreecommitdiff
path: root/qpid/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
commitd39020abcb8cacfcf3cf639a8310ab3075c0eef1 (patch)
tree08e10c1be3170efe4534dee6bbdb3f41515326b7 /qpid/cpp/src
parentd00cc63a79f570ad2d953bc9d8009a4c688546a9 (diff)
downloadqpid-python-d39020abcb8cacfcf3cf639a8310ab3075c0eef1.tar.gz
QPID-664: more specific exception handling (avoids reconnecting for invalid url)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@933924 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r--qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp b/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
index 7e5018fc5f..2ee9cf3fc0 100644
--- a/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
+++ b/qpid/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