From: David Wells Date: Sat, 9 Dec 2017 17:59:09 +0000 (-0500) Subject: Give DoFAccessor::ExcInvalidObject text. X-Git-Tag: v9.0.0-rc1~671^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70035d7a6302b42b21d1dfe21b6a80bdddd50e57;p=dealii.git Give DoFAccessor::ExcInvalidObject text. --- diff --git a/include/deal.II/dofs/dof_accessor.h b/include/deal.II/dofs/dof_accessor.h index 57f1a959a3..3714ccd579 100644 --- a/include/deal.II/dofs/dof_accessor.h +++ b/include/deal.II/dofs/dof_accessor.h @@ -552,7 +552,8 @@ public: * * @ingroup Exceptions */ - DeclException0 (ExcInvalidObject); + DeclExceptionMsg (ExcInvalidObject, "This accessor object has not been " + "associated with any DoFHandler object."); /** * Exception * @@ -1018,7 +1019,8 @@ public: * * @ingroup Exceptions */ - DeclException0 (ExcInvalidObject); + DeclExceptionMsg (ExcInvalidObject, "This accessor object has not been " + "associated with any DoFHandler object."); /** * Exception * diff --git a/include/deal.II/dofs/dof_accessor.templates.h b/include/deal.II/dofs/dof_accessor.templates.h index ade4e1ac8d..839736aa93 100644 --- a/include/deal.II/dofs/dof_accessor.templates.h +++ b/include/deal.II/dofs/dof_accessor.templates.h @@ -2011,9 +2011,7 @@ DoFAccessor::get_dof_indices (std::vector &dof_indices, const unsigned int fe_index) const { - Assert (this->dof_handler != nullptr, - ExcMessage("This accessor object has not been associated " - "with any DoFHandler object.")); + Assert (this->dof_handler != nullptr, ExcInvalidObject()); Assert (static_cast(this->level()) < this->dof_handler->levels.size(), ExcMessage ("The DoFHandler to which this accessor points has not " "been initialized, i.e., it doesn't appear that DoF indices "