summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/client/SslConnector.cpp
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-05-12 13:41:41 +0000
committerAlan Conway <aconway@apache.org>2010-05-12 13:41:41 +0000
commit0fa302cbc61335e930bc78ed619973e1c0fcce83 (patch)
treeac515ac9ad2ae9fe33dc4a5b535a6708f9449559 /cpp/src/qpid/client/SslConnector.cpp
parentd806f791323dd101705c86db17e6956aafb026f3 (diff)
downloadqpid-python-0fa302cbc61335e930bc78ed619973e1c0fcce83.tar.gz
Fixes to new API impl to support failover.
- client/SslConnector.cpp: throw ConnectionException for errors during connection. - client/amqp0_10/ConnectionImpl.cpp: translate unknown exceptions to ConnectionError. - client/amqp0_10/FailoverUpdates.cpp: interrupt receiver by closing session in dtor. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@943489 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/SslConnector.cpp')
-rw-r--r--cpp/src/qpid/client/SslConnector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/SslConnector.cpp b/cpp/src/qpid/client/SslConnector.cpp
index 4be8fcaa04..e82fc2f8da 100644
--- a/cpp/src/qpid/client/SslConnector.cpp
+++ b/cpp/src/qpid/client/SslConnector.cpp
@@ -194,7 +194,7 @@ void SslConnector::connect(const std::string& host, int port){
socket.connect(host, port);
} catch (const std::exception& e) {
socket.close();
- throw;
+ throw ConnectionException(framing::connection::CLOSE_CODE_FRAMING_ERROR, e.what());
}
identifier = str(format("[%1% %2%]") % socket.getLocalPort() % socket.getPeerAddress());