From bbcfed7abfdb21d0b772034d9d2f903d2c891a21 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 16 Aug 2015 14:58:17 -0400 Subject: [PATCH] Add BlockVectorBase iterator exception messages. --- include/deal.II/lac/block_vector_base.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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: /** -- 2.39.5