Simpact Cyan
Population based event driven simulation using mNRM
|
Base class which allows an error message to be set. More...
#include <errorbase.h>
Public Member Functions | |
ErrorBase () | |
Creates an instance without an explicit object name. More... | |
ErrorBase (const std::string &objName) | |
Creates an instance with the object name set to objName . More... | |
std::string | getObjectName () const |
Returns the stored object name. More... | |
std::string | getErrorString () const |
Returns the currently stored error message. More... | |
Protected Member Functions | |
void | setErrorString (const std::string &str) const |
Derived classes can use this member function to store an error message. More... | |
Base class which allows an error message to be set.
Base class which allows an error message to be set. Optionally, an object name can be stored at creation time.
|
inline |
Creates an instance without an explicit object name.
|
inline |
Creates an instance with the object name set to objName
.
|
inline |
Returns the currently stored error message.
|
inline |
Returns the stored object name.
|
inlineprotected |
Derived classes can use this member function to store an error message.