]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Store values in exception classes.
authorDavid Wells <wellsd2@rpi.edu>
Fri, 27 Apr 2018 22:31:43 +0000 (18:31 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 28 Apr 2018 14:52:25 +0000 (10:52 -0400)
include/deal.II/base/subscriptor.h

index 29f323de960f96ffb746f698accff0630f185d39..59480752ba16af8968548f9d03d9878ad976a501 100644 (file)
@@ -136,7 +136,7 @@ public:
    * Exception: Object may not be deleted, since it is used.
    */
   DeclException3(ExcInUse,
-                 int, char *, std::string &,
+                 int, std::string, std::string,
                  << "Object of class " << arg2
                  << " is still used by " << arg1 << " other objects."
                  << "\n\n"
@@ -150,7 +150,7 @@ public:
    * A subscriber with the identification string given to
    * Subscriptor::unsubscribe() did not subscribe to the object.
    */
-  DeclException2(ExcNoSubscriber, char *, char *,
+  DeclException2(ExcNoSubscriber, std::string, std::string,
                  << "No subscriber with identifier <" << arg2
                  << "> subscribes to this object of class " << arg1
                  << ". Consequently, it cannot be unsubscribed.");

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.