qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1577322 - /qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ConnectionHandle.cpp
Date Thu, 13 Mar 2014 21:12:32 GMT
Author: chug
Date: Thu Mar 13 21:12:32 2014
New Revision: 1577322

URL: http://svn.apache.org/r1577322
Log:
QPID-5623: [C++ Messaging Client - amqp1.0] throws qpid::Exception instead of qpid::types::Exception

Intercept the trap and rethrow in proper format.


Modified:
    qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ConnectionHandle.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ConnectionHandle.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ConnectionHandle.cpp?rev=1577322&r1=1577321&r2=1577322&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ConnectionHandle.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/messaging/amqp/ConnectionHandle.cpp Thu Mar 13 21:12:32 2014
@@ -31,7 +31,13 @@ namespace amqp {
 namespace {
 ConnectionImpl* create(const std::string& u, const qpid::types::Variant::Map& o)
 {
-    return new ConnectionHandle(u, o);
+    try {
+        return new ConnectionHandle(u, o);
+    } catch (const types::Exception& ) {
+        throw;
+    } catch (const qpid::Exception& e) {
+        throw messaging::ConnectionError( e.what() );
+    }
 }
 
 struct StaticInit



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message