From b6a735fb1ac081c5e37d612939167c7a2b09e2ac Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 26 Feb 2015 20:58:51 -0600 Subject: [PATCH] Replace an exception without argument. In this case, the exception is really an internal error that indicates an inconsistent state of our data structures. There isn't really a good reason to not use ExcMessage with some descriptive text. --- source/grid/tria.cc | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index d181fb2135..62398b0e9c 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -931,11 +931,6 @@ namespace internal << "Something went wrong when making cell " << arg1 << ". Read the docs and the source code " << "for more information."); - /** - * Exception - * @ingroup Exceptions - */ - DeclException0 (ExcGridHasInvalidVertices); /** * Exception * @ingroup Exceptions @@ -1692,7 +1687,10 @@ namespace internal // exit with an exception AssertThrow (* (std::min_element(vertex_touch_count.begin(), vertex_touch_count.end())) >= 2, - ExcGridHasInvalidVertices()); + ExcMessage("During creation of a triangulation, a part of the " + "algorithm encountered a vertex that is part of only " + "a single adjacent line. However, in 2d, every vertex " + "needs to be at least part of two lines.")); } // reserve enough space @@ -2009,7 +2007,10 @@ namespace internal // exit with an exception AssertThrow (* (std::min_element(vertex_touch_count.begin(), vertex_touch_count.end())) >= 3, - ExcGridHasInvalidVertices()); + ExcGridHasInvalidVertices("During creation of a triangulation, a part of the " + "algorithm encountered a vertex that is part of only " + "one or two adjacent lines. However, in 3d, every vertex " + "needs to be at least part of three lines.")); } -- 2.39.5