activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r505101 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h
Date Fri, 09 Feb 2007 00:39:12 GMT
Author: tabish
Date: Thu Feb  8 16:39:12 2007
New Revision: 505101

URL: http://svn.apache.org/viewvc?view=rev&rev=505101
Log:
http://issues.apache.org/activemq/browse/AMQCPP-30

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h?view=diff&rev=505101&r1=505100&r2=505101
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/exceptions/ActiveMQException.h
Thu Feb  8 16:39:12 2007
@@ -31,7 +31,7 @@
     class ActiveMQException : public cms::CMSException
     {
     private:
-    
+
         /**
          * The cause of this exception.
          */
@@ -41,63 +41,63 @@
          * The stack trace.
          */
         std::vector< std::pair< std::string, int> > stackTrace;
-   
+
     public:
-    
+
         /**
          * Default Constructor
          */
         ActiveMQException() throw();
-       
+
         /**
          * Copy Constructor
          */
         ActiveMQException( const ActiveMQException& ex ) throw();
-       
+
         /**
          * Constructor - Initializes the file name and line number where
-         * this message occured.  Sets the message to report, using an 
+         * this message occured.  Sets the message to report, using an
          * optional list of arguments to parse into the message
          * @param file name where exception occurs
          * @param line number where the exception occurred.
          * @param message to report
          * @param list of primitives that are formatted into the message
          */
-        ActiveMQException( const char* file, const int lineNumber, 
+        ActiveMQException( const char* file, const int lineNumber,
                            const char* msg, ... ) throw();
 
         virtual ~ActiveMQException() throw();
-   
+
         /**
          * Gets the message for this exception.
          * @return Text formatted error message
          */
-        virtual std::string getMessage() const{ 
-            return message; 
+        virtual std::string getMessage() const{
+            return message;
         }
 
         /**
          * Implement method from std::exception
          * @return the const char* of <code>getMessage()</code>.
          */
-        virtual const char* what () const throw (){
+        virtual const char* what() const throw (){
             return message.c_str();
         }
-           
+
         /**
          * Sets the cause for this exception.
          * @param msg the format string for the msg.
          * @param variable - params to format into the string
          */
         virtual void setMessage( const char* msg, ... );
-        
+
         /**
          * Adds a file/line number to the stack trace.
          * @param file The name of the file calling this method (use __FILE__).
          * @param lineNumber The line number in the calling file (use __LINE__).
          */
         virtual void setMark( const char* file, const int lineNumber );
-        
+
         /**
          * Clones this exception.  This is useful for cases where you need
          * to preserve the type of the original exception as well as the message.
@@ -105,12 +105,12 @@
          * @return Copy of this Exception object
          */
         virtual ActiveMQException* clone() const;
-        
+
         /**
          * Provides the stack trace for every point where
          * this exception was caught, marked, and rethrown.  The first
          * item in the returned vector is the first point where the mark
-         * was set (e.g. where the exception was created).  
+         * was set (e.g. where the exception was created).
          * @return the stack trace.
          */
         virtual std::vector< std::pair< std::string, int> > getStackTrace() const;
@@ -119,27 +119,27 @@
          * Prints the stack trace to std::err
          */
         virtual void printStackTrace() const;
-        
+
         /**
          * Prints the stack trace to the given output stream.
          * @param stream the target output stream.
          */
         virtual void printStackTrace( std::ostream& stream ) const;
-        
+
         /**
          * Gets the stack trace as one contiguous string.
          * @return string with formatted stack trace data
          */
         virtual std::string getStackTraceString() const;
-        
+
         /**
          * Assignment operator.
          * @param const reference to another ActiveMQException
          */
         virtual ActiveMQException& operator =( const ActiveMQException& ex );
-        
+
     protected:
-   
+
         virtual void buildMessage( const char* format, va_list& vargs );
 
    };



Mime
View raw message