From 397bbcb48f43a084dfbe448c16936df8a047ab0e Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 18 Mar 2015 18:37:33 -0500 Subject: [PATCH] Clarify a couple of exception messages. --- include/deal.II/base/subscriptor.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/include/deal.II/base/subscriptor.h b/include/deal.II/base/subscriptor.h index 7f1015f62b..27944ec816 100644 --- a/include/deal.II/base/subscriptor.h +++ b/include/deal.II/base/subscriptor.h @@ -1,6 +1,6 @@ // --------------------------------------------------------------------- // -// Copyright (C) 1998 - 2014 by the deal.II authors +// Copyright (C) 1998 - 2015 by the deal.II authors // // This file is part of the deal.II library. // @@ -119,19 +119,22 @@ public: DeclException3(ExcInUse, int, char *, std::string &, << "Object of class " << arg2 - << " is still used by " << arg1 << " other objects.\n" - << "(Additional information: " << arg3 << ")\n" - << "Note the entry in the Frequently Asked Questions of " + << " is still used by " << arg1 << " other objects." + << "\n\n" + << "(Additional information: " << arg3 << ")\n\n" + << "See the entry in the Frequently Asked Questions of " << "deal.II (linked to from http://www.dealii.org/) for " - << "more information on what this error means."); + << "a lot more information on what this error means and " + << "how to fix programs in which it happens."); /** * A subscriber with the identification string given to * Subscriptor::unsubscribe() did not subscribe to the object. */ DeclException2(ExcNoSubscriber, char *, char *, - << "No subscriber with identifier \"" << arg2 - << "\" did subscribe to this object of class " << arg1); + << "No subscriber with identifier <" << arg2 + << "> subscribes to this object of class " << arg1 + << ". Consequently, it cannot be unsubscribed."); //@} /** -- 2.39.5