You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2010/04/14 14:24:29 UTC

svn commit: r933924 - /qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp

Author: gsim
Date: Wed Apr 14 12:24:28 2010
New Revision: 933924

URL: http://svn.apache.org/viewvc?rev=933924&view=rev
Log:
QPID-664: more specific exception handling (avoids reconnecting for invalid url)

Modified:
    qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp?rev=933924&r1=933923&r2=933924&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/client/amqp0_10/ConnectionImpl.cpp Wed Apr 14 12:24:28 2010
@@ -255,7 +255,7 @@ bool ConnectionImpl::tryConnect(const st
             }
             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



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org