]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
More verbose output.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jan 2000 07:50:20 +0000 (07:50 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 10 Jan 2000 07:50:20 +0000 (07:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@2177 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/subscriptor.h
deal.II/base/source/subscriptor.cc

index cee5ed0e7e6bc3ad0d16f940ce1f28c664414dab..b7914c46da80d41e1b37435b76e24f6435b03af7 100644 (file)
@@ -83,12 +83,14 @@ class Subscriptor
                                      * Object may not be deleted, since
                                      * it is used.
                                      */
-    DeclException0(InUse);
+    DeclException1(ExcInUse,
+                  int,
+                  << "This object is still used by " << arg1 << " other objects.");
                                     /**
                                      * Exception: object should be used
                                      * when #unsubscribe# is called.
                                      */
-    DeclException0(NotUsed);
+    DeclException0(ExcNotUsed);
   
 
   private:
index fff706743243a1de7f1b44e4b9fc413e0892a6cb..f002171125e2a859815a5c106092b479a83bbe84 100644 (file)
@@ -17,7 +17,7 @@ Subscriptor::Subscriptor (const Subscriptor &) :
 
 
 Subscriptor::~Subscriptor () {
-  Assert (counter == 0, InUse());
+  Assert (counter == 0, ExcInUse(counter));
 };
 
 
@@ -35,7 +35,7 @@ void Subscriptor::subscribe () const {
 
 
 void Subscriptor::unsubscribe () const {
-  Assert (counter>0, NotUsed());
+  Assert (counter>0, ExcNotUsed());
   --counter;
 };
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.