From e8664c60a57c6623b43480910beb32cfcad609b3 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Wed, 25 Oct 2017 13:01:34 -0400 Subject: [PATCH] add exception messages towards #610 --- include/deal.II/fe/fe_values.h | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/include/deal.II/fe/fe_values.h b/include/deal.II/fe/fe_values.h index 6faeb04ade..b1af10786e 100644 --- a/include/deal.II/fe/fe_values.h +++ b/include/deal.II/fe/fe_values.h @@ -2854,26 +2854,17 @@ public: << "pass to the constructor. Here, the operation you are attempting requires " << "the <" << arg1 << "> flag to be set, but it was apparently not specified " << "upon construction."); + /** - * @todo Document this - * - * @ingroup Exceptions - */ - DeclException0 (ExcCannotInitializeField); - /** - * @todo Document this - * - * @ingroup Exceptions - */ - DeclException0 (ExcInvalidUpdateFlag); - /** - * @todo Document this + * Mismatch between the FEValues FiniteElement and cell->get_dof_handler().get_fe() * * @ingroup Exceptions */ - DeclException0 (ExcFEDontMatch); + DeclExceptionMsg (ExcFEDontMatch, + "The FiniteElement you provided to FEValues and the FiniteElement that belongs " + "to the DoFHandler that provided the cell iterator do not match."); /** - * @todo Document this + * A given shape function is not primitive, but it needs to be. * * @ingroup Exceptions */ @@ -2885,12 +2876,15 @@ public: << "function cannot be called for these shape functions. " << "Maybe you want to use the same function with the " << "_component suffix?"); + /** - * @todo Document this + * The given FiniteElement is not a primitive element, see FiniteElement::is_primitive(). * * @ingroup Exceptions */ - DeclException0 (ExcFENotPrimitive); + DeclExceptionMsg (ExcFENotPrimitive, + "The given FiniteElement is not a primitive element but the requested operation " + "only works for those. See FiniteElement::is_primitive() for more information."); protected: /** -- 2.39.5