activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1449917 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
Date Mon, 25 Feb 2013 21:53:02 GMT
Author: tabish
Date: Mon Feb 25 21:53:01 2013
New Revision: 1449917

URL: http://svn.apache.org/r1449917
Log:
Throw a somewhat better exception. 

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp?rev=1449917&r1=1449916&r2=1449917&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp
Mon Feb 25 21:53:01 2013
@@ -648,9 +648,9 @@ void ActiveMQConnection::close() {
                 this->stop();
             } catch (cms::CMSException& error) {
                 if (!hasException) {
-//                    ex = Exception(new CMSException(error)); // TODO
-                    ex = Exception();
-                    ex.setMark(__FILE__, __LINE__);
+                    // TODO need more work on throwning specific CMSExceptions.
+                    // ex = Exception(new CMSException(error));
+                    ex = Exception(__FILE__, __LINE__, error.getMessage().c_str());
                     hasException = true;
                 }
             }
@@ -714,9 +714,9 @@ void ActiveMQConnection::close() {
             }
         } catch (cms::CMSException& error) {
             if (!hasException) {
-//                ex = Exception(new CMSException(error));  TODO
-                ex = Exception();
-                ex.setMark(__FILE__, __LINE__);
+                // TODO need more work on throwning specific CMSExceptions.
+                // ex = Exception(new CMSException(error));
+                ex = Exception(__FILE__, __LINE__, error.getMessage().c_str());
                 hasException = true;
             }
         }



Mime
View raw message