From: kanschat Date: Mon, 17 Dec 2007 19:19:53 +0000 (+0000) Subject: add exception for memory leak X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b22926a0e92c91645f25cccfde8a214958d52dc9;p=dealii-svn.git add exception for memory leak git-svn-id: https://svn.dealii.org/trunk@15601 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/exceptions.h b/deal.II/base/include/base/exceptions.h index 959cbb8e64..17fc4dfc54 100644 --- a/deal.II/base/include/base/exceptions.h +++ b/deal.II/base/include/base/exceptions.h @@ -585,6 +585,17 @@ namespace StandardExceptions */ DeclException0 (ExcOutOfMemory); + /** + * A memory handler reached a point + * where all allocated objects + * should have been released. Since + * this exception is thrown, some + * where still allocated. + */ + DeclException1 (ExcMemoryLeak, int, + << "Destroying memory handler while " << arg1 + << " objects are still allocated"); + /** * An error occured reading or * writing a file.