18#ifndef __ESCRIPT_ESYSEXCEPTION_H__
19#define __ESCRIPT_ESYSEXCEPTION_H__
43 std::cerr << std::endl <<
"EsysException:" << std::endl
44 <<
message << std::endl << std::endl
57 inline virtual const char*
what()
const throw() {
return msg.c_str(); }
An exception class for assertions within escript.
Definition: EsysException.h:70
AssertException(const std::string &str)
Definition: EsysException.h:72
The base class for escript exceptions.
Definition: EsysException.h:31
virtual ~EsysException()
Destructor.
Definition: EsysException.h:51
EsysException(const std::string &message)
Constructor which creates an Exception with the given message.
Definition: EsysException.h:39
std::string msg
Definition: EsysException.h:62
virtual const char * what() const
Returns a description of the exception.
Definition: EsysException.h:57
An exception class for Input/Output errors.
Definition: EsysException.h:80
IOError(const std::string &str)
Definition: EsysException.h:82
An exception class for features which are not (yet) implemented.
Definition: EsysException.h:90
NotImplementedError(const std::string &str)
Definition: EsysException.h:92
An exception class that signals an invalid argument value.
Definition: EsysException.h:100
ValueError(const std::string &str)
Definition: EsysException.h:102
Definition: AbstractContinuousDomain.cpp:23
Definition: blocktools.h:70