From 722b611b4e3558e249fbb4c62f41c5c50c87f82e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 25 Aug 2016 13:51:39 -0600 Subject: [PATCH] Equip an error message with an error text. --- include/deal.II/base/parameter_handler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/deal.II/base/parameter_handler.h b/include/deal.II/base/parameter_handler.h index a4fb343e13..09059cd474 100644 --- a/include/deal.II/base/parameter_handler.h +++ b/include/deal.II/base/parameter_handler.h @@ -1950,7 +1950,9 @@ public: /** * Exception */ - DeclException0 (ExcAlreadyAtTopLevel); + DeclExceptionMsg (ExcAlreadyAtTopLevel, + "You can't leave a subsection if you are already at the top level " + "of the subsection hierarchy."); /** * Exception */ -- 2.39.5