From: Wolfgang Bangerth Date: Thu, 5 Oct 2023 02:51:10 +0000 (-0600) Subject: Improve two error messages. X-Git-Tag: relicensing~438^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16092%2Fhead;p=dealii.git Improve two error messages. --- diff --git a/include/deal.II/lac/affine_constraints.h b/include/deal.II/lac/affine_constraints.h index c46dda29b7..e683d2d8c4 100644 --- a/include/deal.II/lac/affine_constraints.h +++ b/include/deal.II/lac/affine_constraints.h @@ -1879,13 +1879,25 @@ public: * * @ingroup Exceptions */ - DeclException0(ExcMatrixIsClosed); + DeclExceptionMsg( + ExcMatrixIsClosed, + "You are attempting an operation on an AffineConstraints object " + "that requires the object to be 'closed', i.e., for which you " + "needed to call the close() member function. But the object " + "is not currently closed, and so the operation can not be " + "performed."); /** * Exception * * @ingroup Exceptions */ - DeclException0(ExcMatrixNotClosed); + DeclExceptionMsg( + ExcMatrixNotClosed, + "You are attempting an operation on an AffineConstraints object " + "that requires the object to not be 'closed', i.e., for which you " + "must not already have called the close() member function. But the " + "object is already closed, and so the operation can not be " + "performed."); /** * Exception *