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
commitc0ca44e89747667520a72607f91ba93912536a5f (patch)
treeac515ac9ad2ae9fe33dc4a5b535a6708f9449559 /cpp/src/qpid/client/SslConnector.cpp
parent74c2ecc8425f9b93ed0ac6bf012d354d3b9dc0ea (diff)
downloadqpid-python-c0ca44e89747667520a72607f91ba93912536a5f.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());