You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2013/02/25 22:53:02 UTC

svn commit: r1449917 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnection.cpp

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;
             }
         }