Skip to content

Commit

Permalink
add exception messages
Browse files Browse the repository at this point in the history
towards dealii#610
  • Loading branch information
tjhei committed Oct 25, 2017
1 parent 2b9a971 commit c6fce97
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions include/deal.II/fe/fe_values.h
Expand Up @@ -2854,24 +2854,15 @@ class FEValuesBase :
<< "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
*
Expand All @@ -2885,12 +2876,15 @@ class FEValuesBase :
<< "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:
/**
Expand Down

0 comments on commit c6fce97

Please sign in to comment.