]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add exception messages 5328/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 25 Oct 2017 17:01:34 +0000 (13:01 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 25 Oct 2017 17:03:13 +0000 (13:03 -0400)
towards #610

include/deal.II/fe/fe_values.h

index 6faeb04ade25e3834a48819422cb9e37ca07f9cd..b1af10786e5e643841abe9c8aecf6bbb6d13eeba 100644 (file)
@@ -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:
   /**

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.