diff --git a/common/exceptions.hh b/common/exceptions.hh index 910469a772f51d7b746a3060fda134f8b105d5e3..8594cce880b19ea739af669d7b4ae9ebf867bab9 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