Heidelberg Educational Numerics Library Version 0.27 (from 15 March 2021)
Public Member Functions | List of all members
hdnum::Exception Class Reference

Base class for Exceptions. More...

#include <exceptions.hh>

Inheritance diagram for hdnum::Exception:
hdnum::ErrorException hdnum::IOError hdnum::InvalidStateException hdnum::MathError hdnum::NotImplemented hdnum::RangeError hdnum::SystemError hdnum::OutOfMemoryError hdnum::TimerError

Public Member Functions

void message (const std::string &message)
 store string in internal message buffer
 
const std::string & what () const
 output internal message buffer
 

Detailed Description

Base class for Exceptions.

all HDNUM exceptions are derived from this class via trivial subclassing:

class MyException : public Dune::Exception {};
Class with mathematical matrix operations.
Definition densematrix.hh:33

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
HDNUM_THROW, IOError, MathError

The documentation for this class was generated from the following file: