From: David Wells Date: Sun, 16 Aug 2015 18:58:17 +0000 (-0400) Subject: Add BlockVectorBase iterator exception messages. X-Git-Tag: v8.4.0-rc2~585^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbcfed7abfdb21d0b772034d9d2f903d2c891a21;p=dealii.git Add BlockVectorBase iterator exception messages. --- diff --git a/include/deal.II/lac/block_vector_base.h b/include/deal.II/lac/block_vector_base.h index 219030cc2c..575a087a23 100644 --- a/include/deal.II/lac/block_vector_base.h +++ b/include/deal.II/lac/block_vector_base.h @@ -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: /**