From: wolf Date: Mon, 10 Jan 2000 07:50:20 +0000 (+0000) Subject: More verbose output. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ed70bbff6c4aa9abe88d71a895dc7815786de68;p=dealii-svn.git More verbose output. git-svn-id: https://svn.dealii.org/trunk@2177 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/subscriptor.h b/deal.II/base/include/base/subscriptor.h index cee5ed0e7e..b7914c46da 100644 --- a/deal.II/base/include/base/subscriptor.h +++ b/deal.II/base/include/base/subscriptor.h @@ -83,12 +83,14 @@ class Subscriptor * Object may not be deleted, since * it is used. */ - DeclException0(InUse); + DeclException1(ExcInUse, + int, + << "This object is still used by " << arg1 << " other objects."); /** * Exception: object should be used * when #unsubscribe# is called. */ - DeclException0(NotUsed); + DeclException0(ExcNotUsed); private: diff --git a/deal.II/base/source/subscriptor.cc b/deal.II/base/source/subscriptor.cc index fff7067432..f002171125 100644 --- a/deal.II/base/source/subscriptor.cc +++ b/deal.II/base/source/subscriptor.cc @@ -17,7 +17,7 @@ Subscriptor::Subscriptor (const Subscriptor &) : Subscriptor::~Subscriptor () { - Assert (counter == 0, InUse()); + Assert (counter == 0, ExcInUse(counter)); }; @@ -35,7 +35,7 @@ void Subscriptor::subscribe () const { void Subscriptor::unsubscribe () const { - Assert (counter>0, NotUsed()); + Assert (counter>0, ExcNotUsed()); --counter; };