From 70035d7a6302b42b21d1dfe21b6a80bdddd50e57 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 9 Dec 2017 12:59:09 -0500 Subject: [PATCH] Give DoFAccessor::ExcInvalidObject text. --- include/deal.II/dofs/dof_accessor.h | 6 ++++-- include/deal.II/dofs/dof_accessor.templates.h | 4 +--- 2 files changed, 5 insertions(+), 5 deletions(-) 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 " -- 2.39.5