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 2010/11/15 23:40:47 UTC

svn commit: r1035477 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.h

Author: tabish
Date: Mon Nov 15 22:40:47 2010
New Revision: 1035477

URL: http://svn.apache.org/viewvc?rev=1035477&view=rev
Log:
add accessors for the Error Code.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.h?rev=1035477&r1=1035476&r2=1035477&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.h Mon Nov 15 22:40:47 2010
@@ -190,6 +190,28 @@ namespace cms {
                      const std::vector< std::pair< std::string, int> >& stackTrace );
 
         virtual ~XAException() throw();
+
+    public:
+
+        /**
+         * Sets the error code for this XAException
+         *
+         * @param errorCode
+         *      The error code to assign to this XAException.
+         */
+        void setErrorCode( int errorCode ) {
+            this->errorCode = errorCode;
+        }
+
+        /**
+         * Gets the error code that was assigned to this XAException.
+         *
+         * @returns the assigned error code.
+         */
+        int getErrorCode() const {
+            return this->errorCode;
+        }
+
     };
 
 }