DUNE PDELab (unstable)
Dune::Exception Class Reference
Base class for Dune-Exceptions. More...
#include <dune/common/exceptions.hh>
Public Member Functions | |
| void | message (const std::string &msg) |
| store string in internal message buffer | |
| const char * | what () const noexcept override |
| output internal message buffer | |
Static Public Member Functions | |
| static void | registerHook (ExceptionHook *hook) |
| add a functor which is called before a Dune::Exception is emitted (see Dune::ExceptionHook) More... | |
| static void | clearHook () |
| remove all hooks | |
Detailed Description
Base class for Dune-Exceptions.
all Dune exceptions are derived from this class via trivial subclassing:
You should not throw a Dune::Exception directly but use the macro DUNE_THROW() instead which fills the message-buffer of the exception in a standard way and features a way to pass the result in the operator<<-style
- See also
- DUNE_THROW, IOError, MathError
- Examples
- recipe-operator-splitting.cc.
The documentation for this class was generated from the following files:
- dune/common/exceptions.hh
- dune/common/exceptions.cc
|
Legal Statements / Impressum |
Hosted by TU Dresden & Uni Heidelberg |
generated with Hugo v0.111.3
(Nov 2, 23:43, 2025)