activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r498807 - in /incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main: activemq/connector/ activemq/connector/openwire/ activemq/connector/stomp/ activemq/connector/stomp/marshal/ activemq/exceptions/ activemq/io/ activemq/network/ acti...
Date Mon, 22 Jan 2007 21:18:02 GMT
Author: nmittler
Date: Mon Jan 22 13:18:00 2007
New Revision: 498807

URL: http://svn.apache.org/viewvc?view=rev&rev=498807
Log:
[AMQCPP-50] Extending CMS::Exception from std::exception

Modified:
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/ConnectorException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenwireConnectorException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConnectorException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/marshal/MarshalException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalArgumentException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalMonitorStateException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalStateException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IndexOutOfBoundsException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InterruptedException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InvalidStateException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NoSuchElementException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NullPointerException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/RuntimeException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/UnsupportedOperationException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/EOFException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/IOException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/SocketException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/BrokerError.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/CommandIOException.h
    incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/ConnectorException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/ConnectorException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/ConnectorException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/ConnectorException.h
Mon Jan 22 13:18:00 2007
@@ -32,13 +32,13 @@
         /**
          * Default Constructor
          */
-        ConnectorException() {}
+        ConnectorException() throw() {}
 
         /**
          * Copy Constructor
          * @param ex the exception to copy
          */
-        ConnectorException( const exceptions::ActiveMQException& ex )
+        ConnectorException( const exceptions::ActiveMQException& ex ) throw()
         : exceptions::ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -48,7 +48,7 @@
          * Copy Constructor
          * @param ex the exception to copy, which is an instance of this type
          */
-        ConnectorException( const ConnectorException& ex )
+        ConnectorException( const ConnectorException& ex ) throw()
         : exceptions::ActiveMQException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -62,7 +62,7 @@
          */
         ConnectorException( const char* file, 
                             const int lineNumber, 
-                            const char* msg, ... )
+                            const char* msg, ... ) throw()
         : exceptions::ActiveMQException()
         {
             va_list vargs;
@@ -82,7 +82,7 @@
             return new ConnectorException( *this );
         }
         
-   	    virtual ~ConnectorException() {}
+   	    virtual ~ConnectorException() throw() {}
    
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenwireConnectorException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenwireConnectorException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenwireConnectorException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/openwire/OpenwireConnectorException.h
Mon Jan 22 13:18:00 2007
@@ -31,16 +31,16 @@
     {
     public:
    
-        OpenwireConnectorException() {}
-        OpenwireConnectorException( const exceptions::ActiveMQException& ex ){
+        OpenwireConnectorException() throw(){}
+        OpenwireConnectorException( const exceptions::ActiveMQException& ex ) throw(){
             *( exceptions::ActiveMQException* )this = ex;
         }
-        OpenwireConnectorException( const OpenwireConnectorException& ex ){
+        OpenwireConnectorException( const OpenwireConnectorException& ex ) throw(){
             *( exceptions::ActiveMQException* )this = ex;
         }
         OpenwireConnectorException( const char* file, 
                                     const int lineNumber, 
-                                    const char* msg, ... )
+                                    const char* msg, ... ) throw()
         {
             va_list vargs;
             va_start( vargs, msg );
@@ -59,7 +59,7 @@
             return new OpenwireConnectorException( *this );
         }
       
-        virtual ~OpenwireConnectorException() {}
+        virtual ~OpenwireConnectorException() throw() {}
 
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConnectorException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConnectorException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConnectorException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/StompConnectorException.h
Mon Jan 22 13:18:00 2007
@@ -33,13 +33,13 @@
         /**
          * Default Constructor
          */
-        StompConnectorException() {}
+        StompConnectorException() throw(){}
 
         /**
          * Copy Constructor
          * @param ex the exception to copy
          */
-        StompConnectorException( const exceptions::ActiveMQException& ex )
+        StompConnectorException( const exceptions::ActiveMQException& ex ) throw()
         : connector::ConnectorException()
         {
             *( ActiveMQException* )this = ex;
@@ -49,7 +49,7 @@
          * Copy Constructor
          * @param ex the exception to copy, which is an instance of this type
          */
-        StompConnectorException( const StompConnectorException& ex )
+        StompConnectorException( const StompConnectorException& ex ) throw()
         : connector::ConnectorException()
         {
             *( exceptions::ActiveMQException* )this = ex;
@@ -63,7 +63,7 @@
          */
         StompConnectorException( const char* file, 
                                  const int lineNumber, 
-                                 const char* msg, ... )
+                                 const char* msg, ... ) throw()
         : connector::ConnectorException()
         {
             va_list vargs;
@@ -83,7 +83,7 @@
             return new StompConnectorException( *this );
         }
       
-        virtual ~StompConnectorException() {}
+        virtual ~StompConnectorException() throw() {}
 
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/marshal/MarshalException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/marshal/MarshalException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/marshal/MarshalException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/connector/stomp/marshal/MarshalException.h
Mon Jan 22 13:18:00 2007
@@ -34,13 +34,13 @@
         /**
          * Default Constructor
          */
-        MarshalException() {}
+        MarshalException() throw() {}
 
         /**
          * Copy Constructor
          * @param ex the exception to copy
          */
-        MarshalException( const exceptions::ActiveMQException& ex )
+        MarshalException( const exceptions::ActiveMQException& ex ) throw()
         : exceptions::ActiveMQException()
         {
           *(ActiveMQException*)this = ex;
@@ -50,7 +50,7 @@
          * Copy Constructor
          * @param ex the exception to copy, which is an instance of this type
          */
-        MarshalException( const MarshalException& ex )
+        MarshalException( const MarshalException& ex ) throw()
         : exceptions::ActiveMQException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -63,7 +63,7 @@
          * @param msg the message that was generated
          */
         MarshalException(const char* file, const int lineNumber, 
-            const char* msg, ...)
+            const char* msg, ...) throw()
         : exceptions::ActiveMQException()
         {
             va_list vargs ;
@@ -82,7 +82,7 @@
         virtual exceptions::ActiveMQException* clone() const{
             return new MarshalException( *this );
         }
-        virtual ~MarshalException() {}
+        virtual ~MarshalException() throw(){}
 	    
 	};
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.cpp
Mon Jan 22 13:18:00 2007
@@ -28,11 +28,11 @@
 #endif
 
 ////////////////////////////////////////////////////////////////////////////////
-ActiveMQException::ActiveMQException(){
+ActiveMQException::ActiveMQException() throw(){
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ActiveMQException::ActiveMQException( const ActiveMQException& ex )
+ActiveMQException::ActiveMQException( const ActiveMQException& ex ) throw()
 : cms::CMSException()
 {
     *this = ex;
@@ -40,7 +40,7 @@
 
 ////////////////////////////////////////////////////////////////////////////////
 ActiveMQException::ActiveMQException( const char* file, const int lineNumber, 
-                   const char* msg, ... )
+                   const char* msg, ... ) throw()
 {
     va_list vargs;
     va_start( vargs, msg ) ;
@@ -51,7 +51,7 @@
 }
 
 ////////////////////////////////////////////////////////////////////////////////
-ActiveMQException::~ActiveMQException(){
+ActiveMQException::~ActiveMQException() throw(){
 }
 
 ////////////////////////////////////////////////////////////////////////////////

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h
Mon Jan 22 13:18:00 2007
@@ -47,12 +47,12 @@
         /**
          * Default Constructor
          */
-        ActiveMQException();
+        ActiveMQException() throw();
        
         /**
          * Copy Constructor
          */
-        ActiveMQException( const ActiveMQException& ex );
+        ActiveMQException( const ActiveMQException& ex ) throw();
        
         /**
          * Constructor - Initializes the file name and line number where
@@ -64,9 +64,9 @@
          * @param list of primitives that are formatted into the message
          */
         ActiveMQException( const char* file, const int lineNumber, 
-                           const char* msg, ... );
+                           const char* msg, ... ) throw();
 
-        virtual ~ActiveMQException();
+        virtual ~ActiveMQException() throw();
    
         /**
          * Gets the message for this exception.

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalArgumentException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalArgumentException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalArgumentException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalArgumentException.h
Mon Jan 22 13:18:00 2007
@@ -32,13 +32,13 @@
       /**
        * Default Constructor
        */
-      IllegalArgumentException(){};
+      IllegalArgumentException() throw() {};
       
       /**
        * Conversion Constructor from some other ActiveMQException
        * @param An exception that should become this type of Exception
        */
-      IllegalArgumentException( const ActiveMQException& ex )
+      IllegalArgumentException( const ActiveMQException& ex ) throw()
       : ActiveMQException()
       {
          *(ActiveMQException*)this = ex;
@@ -47,7 +47,7 @@
       /**
        * Copy Constructor
        */
-      IllegalArgumentException( const IllegalArgumentException& ex )
+      IllegalArgumentException( const IllegalArgumentException& ex ) throw()
       : ActiveMQException()
       {
          *(ActiveMQException*)this = ex;
@@ -63,7 +63,7 @@
        * @param list of primitives that are formatted into the message
        */
       IllegalArgumentException(const char* file, const int lineNumber,
-         const char* msg, ...)
+         const char* msg, ...) throw()
       : ActiveMQException()
       {
          va_list vargs ;
@@ -86,7 +86,7 @@
       /**
        * Destructor
        */
-      virtual ~IllegalArgumentException(){}
+      virtual ~IllegalArgumentException() throw() {}
         
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalMonitorStateException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalMonitorStateException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalMonitorStateException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalMonitorStateException.h
Mon Jan 22 13:18:00 2007
@@ -33,13 +33,13 @@
         /**
          * Default Constructor
          */
-        IllegalMonitorStateException() {};
+        IllegalMonitorStateException() throw() {};
 
         /**
          * Conversion Constructor from some other ActiveMQException
          * @param An exception that should become this type of Exception
          */
-        IllegalMonitorStateException(const ActiveMQException& ex)
+        IllegalMonitorStateException(const ActiveMQException& ex) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -48,7 +48,7 @@
         /**
          * Copy Constructor
          */
-        IllegalMonitorStateException(const IllegalMonitorStateException& ex)
+        IllegalMonitorStateException(const IllegalMonitorStateException& ex) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -65,7 +65,7 @@
          */
         IllegalMonitorStateException( const char* file, 
                                       const int lineNumber,
-                                      const char* msg, ...)
+                                      const char* msg, ...) throw()
         {
             va_list vargs;
             va_start(vargs, msg);
@@ -84,7 +84,7 @@
             return new IllegalMonitorStateException(*this);
         }
 
-        virtual ~IllegalMonitorStateException() {}
+        virtual ~IllegalMonitorStateException() throw() {}
 
    };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalStateException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalStateException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalStateException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IllegalStateException.h
Mon Jan 22 13:18:00 2007
@@ -33,13 +33,13 @@
         /**
          * Default Constructor
          */
-        IllegalStateException() {};
+        IllegalStateException() throw() {};
 
         /**
          * Conversion Constructor from some other ActiveMQException
          * @param An exception that should become this type of Exception
          */
-        IllegalStateException(const ActiveMQException& ex)
+        IllegalStateException(const ActiveMQException& ex) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -48,7 +48,7 @@
         /**
          * Copy Constructor
          */
-        IllegalStateException(const IllegalStateException& ex)
+        IllegalStateException(const IllegalStateException& ex) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -65,7 +65,7 @@
          */
         IllegalStateException( const char* file, 
                                const int lineNumber,
-                               const char* msg, ...)
+                               const char* msg, ...) throw()
         : ActiveMQException()
         {
             va_list vargs;
@@ -85,7 +85,7 @@
             return new IllegalStateException(*this);
         }
 
-        virtual ~IllegalStateException() {}
+        virtual ~IllegalStateException() throw() {}
 
    };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IndexOutOfBoundsException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IndexOutOfBoundsException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IndexOutOfBoundsException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/IndexOutOfBoundsException.h
Mon Jan 22 13:18:00 2007
@@ -32,13 +32,13 @@
       /**
        * Default Constructor
        */
-      IndexOutOfBoundsException(){};
+      IndexOutOfBoundsException() throw() {};
       
       /**
        * Conversion Constructor from some other ActiveMQException
        * @param An exception that should become this type of Exception
        */
-      IndexOutOfBoundsException( const ActiveMQException& ex )
+      IndexOutOfBoundsException( const ActiveMQException& ex ) throw()
       : ActiveMQException()
       {
          *(ActiveMQException*)this = ex;
@@ -47,7 +47,7 @@
       /**
        * Copy Constructor
        */
-      IndexOutOfBoundsException( const IndexOutOfBoundsException& ex )
+      IndexOutOfBoundsException( const IndexOutOfBoundsException& ex ) throw()
       : ActiveMQException()
       {
          *(ActiveMQException*)this = ex;
@@ -63,7 +63,7 @@
        * @param list of primitives that are formatted into the message
        */
       IndexOutOfBoundsException(const char* file, const int lineNumber,
-         const char* msg, ...)
+         const char* msg, ...) throw()
       : ActiveMQException()
       {
          va_list vargs ;
@@ -86,7 +86,7 @@
       /**
        * Destructor
        */
-      virtual ~IndexOutOfBoundsException(){}
+      virtual ~IndexOutOfBoundsException() throw() {}
         
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InterruptedException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InterruptedException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InterruptedException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InterruptedException.h
Mon Jan 22 13:18:00 2007
@@ -32,13 +32,13 @@
         /**
          * Default Constructor
          */
-        InterruptedException() {};
+        InterruptedException() throw() {};
         
         /**
          * Conversion Constructor from some other ActiveMQException
          * @param An exception that should become this type of Exception
          */
-        InterruptedException(const ActiveMQException& ex)
+        InterruptedException(const ActiveMQException& ex) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -47,7 +47,7 @@
         /**
          * Copy Constructor
          */
-        InterruptedException(const InterruptedException& ex)
+        InterruptedException(const InterruptedException& ex) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -64,7 +64,7 @@
          */
         InterruptedException( const char* file, 
                               const int lineNumber,
-                              const char* msg, ... )
+                              const char* msg, ... ) throw()
         : ActiveMQException()
         {
             va_list vargs;
@@ -84,7 +84,7 @@
             return new InterruptedException(*this);
         }
 
-        virtual ~InterruptedException() {}
+        virtual ~InterruptedException() throw() {}
 
    };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InvalidStateException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InvalidStateException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InvalidStateException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/InvalidStateException.h
Mon Jan 22 13:18:00 2007
@@ -33,13 +33,13 @@
         /**
          * Default Constructor
          */
-        InvalidStateException() {}
+        InvalidStateException() throw() {}
 
         /**
          * Conversion Constructor from some other ActiveMQException
          * @param An exception that should become this type of Exception
          */
-        InvalidStateException(const ActiveMQException& ex)
+        InvalidStateException(const ActiveMQException& ex) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -48,7 +48,7 @@
         /**
          * Copy Constructor
          */
-        InvalidStateException( const InvalidStateException& ex )
+        InvalidStateException( const InvalidStateException& ex ) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -65,7 +65,7 @@
          */
         InvalidStateException( const char* file, 
                                const int lineNumber,
-                               const char* msg, ... )
+                               const char* msg, ... ) throw()
         : ActiveMQException()
         {
             va_list vargs;
@@ -85,7 +85,7 @@
             return new InvalidStateException(*this);
         }
 
-        virtual ~InvalidStateException() {}
+        virtual ~InvalidStateException() throw() {}
       
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NoSuchElementException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NoSuchElementException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NoSuchElementException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NoSuchElementException.h
Mon Jan 22 13:18:00 2007
@@ -33,13 +33,13 @@
         /**
          * Default Constructor
          */
-        NoSuchElementException() {};
+        NoSuchElementException() throw() {};
 
         /**
          * Conversion Constructor from some other ActiveMQException
          * @param An exception that should become this type of Exception
          */
-        NoSuchElementException( const ActiveMQException& ex )
+        NoSuchElementException( const ActiveMQException& ex ) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -48,7 +48,7 @@
         /**
          * Copy Constructor
          */
-        NoSuchElementException( const NoSuchElementException& ex )
+        NoSuchElementException( const NoSuchElementException& ex ) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -65,7 +65,7 @@
          */
         NoSuchElementException( const char* file, 
                                 const int lineNumber,
-                                const char* msg, ... )
+                                const char* msg, ... ) throw()
         : ActiveMQException()
         {
             va_list vargs;
@@ -85,7 +85,7 @@
             return new NoSuchElementException(*this);
         }
 
-        virtual ~NoSuchElementException() {}
+        virtual ~NoSuchElementException() throw() {}
 
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NullPointerException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NullPointerException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NullPointerException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/NullPointerException.h
Mon Jan 22 13:18:00 2007
@@ -32,13 +32,13 @@
         /**
          * Default Constructor
          */
-        NullPointerException() {};
+        NullPointerException() throw() {};
 
         /**
          * Conversion Constructor from some other ActiveMQException
          * @param An exception that should become this type of Exception
          */
-        NullPointerException( const ActiveMQException& ex )
+        NullPointerException( const ActiveMQException& ex ) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -47,7 +47,7 @@
         /**
          * Copy Constructor
          */
-        NullPointerException(const NullPointerException& ex)
+        NullPointerException(const NullPointerException& ex) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -64,7 +64,7 @@
          */
         NullPointerException( const char* file, 
                               const int lineNumber,
-                              const char* msg, ... )
+                              const char* msg, ... ) throw()
         : ActiveMQException()
         {
             va_list vargs;
@@ -84,7 +84,7 @@
             return new NullPointerException( *this );
         }
 
-        virtual ~NullPointerException() {}
+        virtual ~NullPointerException() throw() {}
 
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/RuntimeException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/RuntimeException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/RuntimeException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/RuntimeException.h
Mon Jan 22 13:18:00 2007
@@ -34,13 +34,13 @@
         /**
          * Default Constructor
          */
-        RuntimeException() {};
+        RuntimeException() throw() {};
 
         /**
          * Conversion Constructor from some other ActiveMQException
          * @param An exception that should become this type of Exception
          */
-        RuntimeException( const ActiveMQException& ex )
+        RuntimeException( const ActiveMQException& ex ) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -49,7 +49,7 @@
         /**
          * Copy Constructor
          */
-        RuntimeException( const RuntimeException& ex )
+        RuntimeException( const RuntimeException& ex ) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -66,7 +66,7 @@
          */
         RuntimeException( const char* file, 
                           const int lineNumber,
-                          const char* msg, ... )
+                          const char* msg, ... ) throw()
         : ActiveMQException()
         {
             va_list vargs;
@@ -86,7 +86,7 @@
             return new RuntimeException( *this );
         }
 
-        virtual ~RuntimeException() {}
+        virtual ~RuntimeException() throw() {}
 
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/UnsupportedOperationException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/UnsupportedOperationException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/UnsupportedOperationException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/UnsupportedOperationException.h
Mon Jan 22 13:18:00 2007
@@ -32,13 +32,13 @@
         /**
          * Default Constructor
          */
-        UnsupportedOperationException() {};
+        UnsupportedOperationException() throw() {};
       
         /**
          * Conversion Constructor from some other ActiveMQException
          * @param An exception that should become this type of Exception
          */
-        UnsupportedOperationException( const ActiveMQException& ex )
+        UnsupportedOperationException( const ActiveMQException& ex ) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -47,7 +47,7 @@
         /**
          * Copy Constructor
          */
-        UnsupportedOperationException( const UnsupportedOperationException& ex )
+        UnsupportedOperationException( const UnsupportedOperationException& ex ) throw()
         : ActiveMQException()
         {
             *(ActiveMQException*)this = ex;
@@ -64,7 +64,7 @@
          */
         UnsupportedOperationException( const char* file, 
                                        const int lineNumber,
-                                       const char* msg, ... )
+                                       const char* msg, ... ) throw()
         : ActiveMQException()
         {
             va_list vargs;
@@ -84,7 +84,7 @@
             return new UnsupportedOperationException( *this );
         }
 
-        virtual ~UnsupportedOperationException(){}
+        virtual ~UnsupportedOperationException() throw() {}
         
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/EOFException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/EOFException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/EOFException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/EOFException.h
Mon Jan 22 13:18:00 2007
@@ -33,13 +33,13 @@
         /**
          * Default Constructor
          */
-        EOFException(){}
+        EOFException() throw(){}
 
         /**
          * Copy Constructor
          * @param ex the exception to copy
          */
-        EOFException( const exceptions::ActiveMQException& ex )
+        EOFException( const exceptions::ActiveMQException& ex ) throw()
         : IOException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -49,7 +49,7 @@
          * Copy Constructor
          * @param ex the exception to copy, which is an instance of this type
          */
-        EOFException( const EOFException& ex )
+        EOFException( const EOFException& ex ) throw()
         : IOException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -62,7 +62,7 @@
          * @param msg the message that was generated
          */
         EOFException( const char* file, const int lineNumber,
-                      const char* msg, ... )
+                      const char* msg, ... ) throw()
         : IOException()
         {
             va_list vargs;
@@ -82,7 +82,7 @@
             return new EOFException( *this );
         }
         
-        virtual ~EOFException(){}
+        virtual ~EOFException() throw(){}
         
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/IOException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/IOException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/IOException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/io/IOException.h
Mon Jan 22 13:18:00 2007
@@ -32,13 +32,13 @@
         /**
          * Default Constructor
          */
-        IOException(){}
+        IOException() throw() {}
 
         /**
          * Copy Constructor
          * @param ex the exception to copy
          */
-        IOException( const exceptions::ActiveMQException& ex )
+        IOException( const exceptions::ActiveMQException& ex ) throw()
         : exceptions::ActiveMQException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -48,7 +48,7 @@
          * Copy Constructor
          * @param ex the exception to copy, which is an instance of this type
          */
-        IOException( const IOException& ex )
+        IOException( const IOException& ex ) throw()
         : exceptions::ActiveMQException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -61,7 +61,7 @@
          * @param msg the message that was generated
          */
         IOException( const char* file, const int lineNumber,
-                     const char* msg, ... )
+                     const char* msg, ... ) throw()
         : exceptions::ActiveMQException()
         {
             va_list vargs;
@@ -81,7 +81,7 @@
             return new IOException( *this );
         }
         
-        virtual ~IOException(){}
+        virtual ~IOException() throw() {}
         
     };
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/SocketException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/SocketException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/SocketException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/network/SocketException.h
Mon Jan 22 13:18:00 2007
@@ -29,19 +29,19 @@
 	{
 	public:
 	
-		SocketException(){}
-        SocketException( const ActiveMQException& ex )
+		SocketException() throw() {}
+        SocketException( const ActiveMQException& ex ) throw()
         : io::IOException()
         {
             *(ActiveMQException*)this = ex;
         }
-        SocketException( const SocketException& ex )
+        SocketException( const SocketException& ex ) throw()
         : io::IOException()
         {
             *(ActiveMQException*)this = ex;
         }
 	    SocketException( const char* file, const int lineNumber, 
-                         const char* msg, ...)
+                         const char* msg, ...) throw()
         : io::IOException()
 	    {
 	        va_list vargs;
@@ -61,7 +61,7 @@
             return new SocketException( *this );
         }
         
-	    virtual ~SocketException(){}
+	    virtual ~SocketException() throw() {}
         
 	};
 

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/BrokerError.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/BrokerError.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/BrokerError.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/BrokerError.h
Mon Jan 22 13:18:00 2007
@@ -34,13 +34,13 @@
         /**
          * Default Constructor
          */
-        BrokerError(){};
+        BrokerError() throw() {};
 
         /**
          * Copy Constructor
          * @param ex the exception to copy
          */
-        BrokerError( const exceptions::ActiveMQException& ex )
+        BrokerError( const exceptions::ActiveMQException& ex ) throw()
         : exceptions::ActiveMQException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -50,7 +50,7 @@
          * Copy Constructor
          * @param ex the exception to copy, which is an instance of this type
          */
-        BrokerError( const BrokerError& ex )
+        BrokerError( const BrokerError& ex ) throw()
         : exceptions::ActiveMQException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -63,7 +63,7 @@
          * @param msg the message that was generated
          */
         BrokerError(const char* file, const int lineNumber, 
-            const char* msg, ...)
+            const char* msg, ...) throw()
         : exceptions::ActiveMQException()
         {
             va_list vargs ;
@@ -84,7 +84,7 @@
             return new BrokerError( *this );
         }
         
-        virtual ~BrokerError(){}
+        virtual ~BrokerError() throw() {}
         
     };
     

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/CommandIOException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/CommandIOException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/CommandIOException.h
(original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/CommandIOException.h
Mon Jan 22 13:18:00 2007
@@ -30,13 +30,13 @@
         /**
          * Default Constructor
          */
-        CommandIOException(){};
+        CommandIOException() throw() {};
         
         /**
          * Copy Constructor
          * @param ex the exception to copy
          */
-        CommandIOException( const exceptions::ActiveMQException& ex )
+        CommandIOException( const exceptions::ActiveMQException& ex ) throw()
         : io::IOException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -46,7 +46,7 @@
          * Copy Constructor
          * @param ex the exception to copy, which is an instance of this type
          */
-        CommandIOException( const CommandIOException& ex )
+        CommandIOException( const CommandIOException& ex ) throw()
         : io::IOException()
         {
             *(exceptions::ActiveMQException*)this = ex;
@@ -59,7 +59,7 @@
          * @param msg the message that was generated
          */
         CommandIOException( const char* file, const int lineNumber, 
-                            const char* msg, ... )
+                            const char* msg, ... ) throw()
         : io::IOException()
         {
             va_list vargs;
@@ -80,7 +80,7 @@
             return new CommandIOException( *this );
         }
         
-        virtual ~CommandIOException(){}
+        virtual ~CommandIOException() throw() {}
     };
     
 }}

Modified: incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h
URL: http://svn.apache.org/viewvc/incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h?view=diff&rev=498807&r1=498806&r2=498807
==============================================================================
--- incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h (original)
+++ incubator/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/CMSException.h Mon Jan
22 13:18:00 2007
@@ -22,6 +22,7 @@
 #include <string>
 #include <vector>
 #include <iostream>
+#include <exception>
 
 namespace cms{
     
@@ -29,17 +30,27 @@
      * This class represents an error that has occurred in 
      * cms.
      */
-    class CMSException{
+    class CMSException : public std::exception {
         
     public:
         
-        virtual ~CMSException(){}
+        CMSException() throw() {}
+        
+        virtual ~CMSException() throw() {}
         
         /**
          * Gets the cause of the error.
          * @return string errors message
          */
         virtual std::string getMessage() const = 0;
+        
+        /**
+         * Implement method from std::exception
+         * @return the const char* of <code>getMessage()</code>.
+         */
+        virtual const char * what () const throw (){
+            return getMessage().c_str();
+        }
         
         /**
          * Provides the stack trace for every point where



Mime
View raw message