Heidelberg Educational Numerics Library  Version 0.24 (from 9 September 2011)
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::InvalidStateException hdnum::IOError 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 {};

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: