From 73dc0b7e2842e2f1b2aa193644c82c09a9603001 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 14 Apr 2010 12:24:28 +0000 Subject: 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 --- cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') 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& 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 -- cgit v1.2.1