Base class for Dune-Exceptions. More...
#include <dune/common/exceptions.hh>
Public Member Functions | |
void | message (const std::string &message) |
store string in internal message buffer | |
const std::string & | what () const |
output internal message buffer |
Base class for Dune-Exceptions.
all Dune 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
void Dune::Exception::message | ( | const std::string & | message | ) | [inline] |
store string in internal message buffer
const std::string & Dune::Exception::what | ( | ) | const [inline] |
output internal message buffer
Referenced by Dune::operator<<().