]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add BlockVectorBase iterator exception messages.
authorDavid Wells <drwells@vt.edu>
Sun, 16 Aug 2015 18:58:17 +0000 (14:58 -0400)
committerDavid Wells <drwells@vt.edu>
Wed, 19 Aug 2015 14:30:19 +0000 (10:30 -0400)
include/deal.II/lac/block_vector_base.h

index 219030cc2cfdea2056698c7e7a7da33bedbf82a1..575a087a23dc7d03ceecfaecd873e2c1417a47af 100644 (file)
@@ -456,13 +456,20 @@ namespace internal
        */
 
       /**
-       * Exception.
+       * Exception thrown when one performs arithmetical comparisons on
+       * iterators belonging to two different block vectors.
        */
-      DeclException0 (ExcPointerToDifferentVectors);
+      DeclExceptionMsg (ExcPointerToDifferentVectors,
+                        "Your program tried to compare iterators pointing to "
+                        "different block vectors. There is no reasonable way "
+                        "to do this.");
+
       /**
-       * Exception.
+       * Exception thrown when one attempts to copy construct a non-const
+       * iterator from a const iterator.
        */
-      DeclException0 (ExcCastingAwayConstness);
+      DeclExceptionMsg (ExcCastingAwayConstness,
+                        "A copy of a const iterator should also be const.");
       //@}
     private:
       /**

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.