From 32d3383c3624c3d21744f0b3056db1f62d429cb5 Mon Sep 17 00:00:00 2001
From: Thimo Neubauer <thimo@dune-project.org>
Date: Mon, 25 Oct 2004 13:21:23 +0000
Subject: [PATCH] added OutOfMemoryError as subclass of SystemError because I
 expect this to be the most popular error reason :)

[[Imported from SVN: r984]]
---
 common/exceptions.hh | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/common/exceptions.hh b/common/exceptions.hh
index 910469a77..8594cce88 100644
--- a/common/exceptions.hh
+++ b/common/exceptions.hh
@@ -10,9 +10,9 @@
 
 namespace Dune {
 
-  /*! \file exceptions.hh */
 
   /*! \defgroup Exceptions Exception handling
+     \ingroup Common
 
      The Dune-exceptions are designed to allow a simple derivation of subclasses
      and to accept a text written in the '<<' syntax.
@@ -60,6 +60,14 @@ namespace Dune {
 
    */
 
+  /*! \file
+
+     This file defines a common framework for generating exception
+     subclasses and to throw them in a simple manner
+
+   */
+
+
   /*! \brief Base class for Dune-Exceptions
 
      all Dune exceptions are derived from this class via trivial subclassing:
@@ -167,6 +175,11 @@ namespace Dune {
    */
   class SystemError : public Exception {};
 
+  /*! default exception if memory allocation fails
+
+   */
+  class OutOfMemoryError : public SystemError {};
+
 } // end namespace
 
 #endif
-- 
GitLab