activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1450472 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/
Date Tue, 26 Feb 2013 21:59:22 GMT
Author: tabish
Date: Tue Feb 26 21:59:21 2013
New Revision: 1450472

URL: http://svn.apache.org/r1450472
Log:
https://issues.apache.org/jira/browse/AMQCPP-467

add clone method to CMSException and covariant versions to its derivatives. 

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.h
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.cpp
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.cpp Tue Feb 26 21:59:21
2013
@@ -20,6 +20,7 @@
 #include <vector>
 #include <sstream>
 #include <memory>
+#include <utility>
 #include <algorithm>
 
 using namespace std;
@@ -80,6 +81,11 @@ CMSException::~CMSException() throw() {
 }
 
 ////////////////////////////////////////////////////////////////////////////////
+CMSException* CMSException::clone() {
+    return new CMSException(*this);
+}
+
+////////////////////////////////////////////////////////////////////////////////
 void CMSException::setMark(const char* file, const int lineNumber) {
 
     // Add this mark to the end of the stack trace.

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h Tue Feb 26 21:59:21
2013
@@ -26,7 +26,7 @@
 
 #include <cms/Config.h>
 
-namespace cms{
+namespace cms {
 
     class CMSExceptionData;
 
@@ -42,8 +42,8 @@ namespace cms{
      * Since the contained cause exception is of type std::exception and the
      * C++ exception class has no clone or copy method defined the contained
      * exception can only be owned by one instance of an CMSException.  To that
-     * end the class hands off the exception to each successive copy so care must
-     * be taken when handling CMSException instances.
+     * end the class hands off the exception to each successive copy or clone
+     * so care must be taken when handling CMSException instances.
      *
      * @since 1.0
      */
@@ -127,6 +127,16 @@ namespace cms{
          */
         virtual const char* what() const throw();
 
+        /**
+         * Creates a cloned version of this CMSException instance.
+         *
+         * This method passes on ownership of the contained cause exception pointer to
+         * the clone.  This method is mainly useful to the CMS provider.
+         *
+         * @returns new pointer that is a clone of this Exception, caller owns.
+         */
+        virtual CMSException* clone();
+
     private:
 
         /**

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.cpp Tue Feb
26 21:59:21 2013
@@ -45,3 +45,8 @@ CMSSecurityException::CMSSecurityExcepti
 ////////////////////////////////////////////////////////////////////////////////
 CMSSecurityException::~CMSSecurityException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+CMSSecurityException* CMSSecurityException::clone() {
+    return new CMSSecurityException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSSecurityException.h Tue Feb 26
21:59:21 2013
@@ -21,7 +21,7 @@
 #include <cms/Config.h>
 #include <cms/CMSException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * This exception must be thrown when a provider rejects a user name/password submitted
@@ -46,6 +46,8 @@ namespace cms{
 
         virtual ~CMSSecurityException() throw();
 
+        virtual CMSSecurityException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.cpp Tue Feb
26 21:59:21 2013
@@ -45,3 +45,8 @@ IllegalStateException::IllegalStateExcep
 ////////////////////////////////////////////////////////////////////////////////
 IllegalStateException::~IllegalStateException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+IllegalStateException* IllegalStateException::clone() {
+    return new IllegalStateException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/IllegalStateException.h Tue Feb
26 21:59:21 2013
@@ -21,7 +21,7 @@
 #include <cms/Config.h>
 #include <cms/CMSException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * This exception is thrown when a method is invoked at an illegal or inappropriate
@@ -47,6 +47,8 @@ namespace cms{
 
         virtual ~IllegalStateException() throw();
 
+        virtual IllegalStateException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.cpp Tue
Feb 26 21:59:21 2013
@@ -45,3 +45,8 @@ InvalidClientIdException::InvalidClientI
 ////////////////////////////////////////////////////////////////////////////////
 InvalidClientIdException::~InvalidClientIdException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidClientIdException* InvalidClientIdException::clone() {
+    return new InvalidClientIdException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidClientIdException.h Tue Feb
26 21:59:21 2013
@@ -21,7 +21,7 @@
 #include <cms/Config.h>
 #include <cms/CMSException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * This exception must be thrown when a client attempts to set a connection's
@@ -45,6 +45,8 @@ namespace cms{
 
         virtual ~InvalidClientIdException() throw();
 
+        virtual InvalidClientIdException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.cpp
Tue Feb 26 21:59:21 2013
@@ -45,3 +45,8 @@ InvalidDestinationException::InvalidDest
 ////////////////////////////////////////////////////////////////////////////////
 InvalidDestinationException::~InvalidDestinationException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidDestinationException* InvalidDestinationException::clone() {
+    return new InvalidDestinationException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidDestinationException.h Tue
Feb 26 21:59:21 2013
@@ -21,7 +21,7 @@
 #include <cms/Config.h>
 #include <cms/CMSException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * This exception must be thrown when a destination either is not understood by a provider
@@ -45,6 +45,8 @@ namespace cms{
 
         virtual ~InvalidDestinationException() throw();
 
+        virtual InvalidDestinationException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.cpp Tue
Feb 26 21:59:21 2013
@@ -45,3 +45,8 @@ InvalidSelectorException::InvalidSelecto
 ////////////////////////////////////////////////////////////////////////////////
 InvalidSelectorException::~InvalidSelectorException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+InvalidSelectorException* InvalidSelectorException::clone() {
+    return new InvalidSelectorException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/InvalidSelectorException.h Tue Feb
26 21:59:21 2013
@@ -21,7 +21,7 @@
 #include <cms/Config.h>
 #include <cms/CMSException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * This exception must be thrown when a CMS client attempts to give a provider a
@@ -45,6 +45,8 @@ namespace cms{
 
         virtual ~InvalidSelectorException() throw();
 
+        virtual InvalidSelectorException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.cpp Tue Feb
26 21:59:21 2013
@@ -45,3 +45,8 @@ MessageEOFException::MessageEOFException
 ////////////////////////////////////////////////////////////////////////////////
 MessageEOFException::~MessageEOFException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+MessageEOFException* MessageEOFException::clone() {
+    return new MessageEOFException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageEOFException.h Tue Feb 26
21:59:21 2013
@@ -21,7 +21,7 @@
 #include <cms/Config.h>
 #include <cms/CMSException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * This exception must be thrown when an unexpected end of stream has been
@@ -45,6 +45,8 @@ namespace cms{
 
         virtual ~MessageEOFException() throw();
 
+        virtual MessageEOFException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.cpp Tue Feb
26 21:59:21 2013
@@ -45,3 +45,8 @@ MessageFormatException::MessageFormatExc
 ////////////////////////////////////////////////////////////////////////////////
 MessageFormatException::~MessageFormatException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+MessageFormatException* MessageFormatException::clone() {
+    return new MessageFormatException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageFormatException.h Tue Feb
26 21:59:21 2013
@@ -21,7 +21,7 @@
 #include <cms/Config.h>
 #include <cms/CMSException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * This exception must be thrown when a CMS client attempts to use a data type not
@@ -48,6 +48,8 @@ namespace cms{
 
         virtual ~MessageFormatException() throw();
 
+        virtual MessageFormatException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.cpp
Tue Feb 26 21:59:21 2013
@@ -44,3 +44,8 @@ MessageNotReadableException::MessageNotR
 ////////////////////////////////////////////////////////////////////////////////
 MessageNotReadableException::~MessageNotReadableException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+MessageNotReadableException* MessageNotReadableException::clone() {
+    return new MessageNotReadableException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotReadableException.h Tue
Feb 26 21:59:21 2013
@@ -21,7 +21,7 @@
 #include <cms/Config.h>
 #include <cms/CMSException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * This exception must be thrown when a CMS client attempts to read a write-only message.
@@ -44,6 +44,8 @@ namespace cms{
 
         virtual ~MessageNotReadableException() throw();
 
+        virtual MessageNotReadableException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.cpp
Tue Feb 26 21:59:21 2013
@@ -45,3 +45,8 @@ MessageNotWriteableException::MessageNot
 ////////////////////////////////////////////////////////////////////////////////
 MessageNotWriteableException::~MessageNotWriteableException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+MessageNotWriteableException* MessageNotWriteableException::clone() {
+    return new MessageNotWriteableException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/MessageNotWriteableException.h Tue
Feb 26 21:59:21 2013
@@ -21,7 +21,7 @@
 #include <cms/Config.h>
 #include <cms/CMSException.h>
 
-namespace cms{
+namespace cms {
 
     /**
      * This exception must be thrown when a CMS client attempts to write to a read-only message.
@@ -44,6 +44,8 @@ namespace cms{
 
         virtual ~MessageNotWriteableException() throw();
 
+        virtual MessageNotWriteableException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.cpp
Tue Feb 26 21:59:21 2013
@@ -47,3 +47,8 @@ ResourceAllocationException::ResourceAll
 ////////////////////////////////////////////////////////////////////////////////
 ResourceAllocationException::~ResourceAllocationException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+ResourceAllocationException* ResourceAllocationException::clone() {
+    return new ResourceAllocationException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ResourceAllocationException.h Tue
Feb 26 21:59:21 2013
@@ -46,6 +46,7 @@ namespace cms {
 
         virtual ~ResourceAllocationException() throw();
 
+        virtual ResourceAllocationException* clone();
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.cpp
Tue Feb 26 21:59:21 2013
@@ -47,3 +47,8 @@ TransactionInProgressException::Transact
 ////////////////////////////////////////////////////////////////////////////////
 TransactionInProgressException::~TransactionInProgressException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+TransactionInProgressException* TransactionInProgressException::clone() {
+    return new TransactionInProgressException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionInProgressException.h
Tue Feb 26 21:59:21 2013
@@ -46,6 +46,7 @@ namespace cms {
 
         virtual ~TransactionInProgressException() throw();
 
+        virtual TransactionInProgressException* clone();
 
     };
 

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.cpp
Tue Feb 26 21:59:21 2013
@@ -47,3 +47,8 @@ TransactionRolledBackException::Transact
 ////////////////////////////////////////////////////////////////////////////////
 TransactionRolledBackException::~TransactionRolledBackException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+TransactionRolledBackException* TransactionRolledBackException::clone() {
+    return new TransactionRolledBackException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/TransactionRolledBackException.h
Tue Feb 26 21:59:21 2013
@@ -45,6 +45,8 @@ namespace cms {
 
         virtual ~TransactionRolledBackException() throw();
 
+        virtual TransactionRolledBackException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.cpp
Tue Feb 26 21:59:21 2013
@@ -47,3 +47,8 @@ UnsupportedOperationException::Unsupport
 ////////////////////////////////////////////////////////////////////////////////
 UnsupportedOperationException::~UnsupportedOperationException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+UnsupportedOperationException* UnsupportedOperationException::clone() {
+    return new UnsupportedOperationException(*this);
+}

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.h?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/UnsupportedOperationException.h
Tue Feb 26 21:59:21 2013
@@ -45,6 +45,8 @@ namespace cms {
 
         virtual ~UnsupportedOperationException() throw();
 
+        virtual UnsupportedOperationException* clone();
+
     };
 
 }

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.cpp?rev=1450472&r1=1450471&r2=1450472&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/XAException.cpp Tue Feb 26 21:59:21
2013
@@ -76,3 +76,8 @@ XAException::XAException(const std::stri
 ////////////////////////////////////////////////////////////////////////////////
 XAException::~XAException() throw() {
 }
+
+////////////////////////////////////////////////////////////////////////////////
+XAException* XAException::clone() {
+    return new XAException(*this);
+}

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=1450472&r1=1450471&r2=1450472&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 Tue Feb 26 21:59:21
2013
@@ -189,6 +189,8 @@ namespace cms {
 
         virtual ~XAException() throw();
 
+        virtual XAException* clone();
+
     public:
 
         /**



Mime
View raw message