activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r766698 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Throwable.h
Date Mon, 20 Apr 2009 14:00:11 GMT
Author: tabish
Date: Mon Apr 20 14:00:11 2009
New Revision: 766698

URL: http://svn.apache.org/viewvc?rev=766698&view=rev
Log:
Fix missing call to base class constructor and adding in some additional comments to the docs.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Throwable.h

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Throwable.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Throwable.h?rev=766698&r1=766697&r2=766698&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Throwable.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/lang/Throwable.h Mon Apr 20 14:00:11
2009
@@ -30,12 +30,21 @@
 namespace lang{
 
     /**
-     * This class represents an error that has occurred.
+     * This class represents an error that has occurred.  All Exceptions in the Decaf
+     * library should extend from this or from the Exception class in order to ensure
+     * that all Decaf Exceptions are interchangeable with the std::exception class.
+     *
+     * Throwable can wrap another throwable as the cause if the error being thrown.
+     * The user can inspect the cause by calling <code>getCause</code>, the pointer
+     * returned is the property of the Throwable instance and will be deleted when it
+     * is deleted or goes out of scope.
+     *
+     * @since 1.0
      */
     class DECAF_API Throwable : public virtual std::exception {
     public:
 
-        Throwable() throw() {}
+        Throwable() throw() : std::exception() {}
 
         virtual ~Throwable() throw() {}
 



Mime
View raw message