dlvhex
2.5.0
|
General exception class. More...
#include <include/dlvhex2/Error.h>
Public Member Functions | |
GeneralError (const std::string &msg) | |
initialize exception with error string. | |
virtual | ~GeneralError () throw () |
virtual std::string | getErrorMsg () const |
Returns error string. |
DLVHEX_NAMESPACE_BEGIN GeneralError::GeneralError | ( | const std::string & | msg | ) | [explicit] |
virtual GeneralError::~GeneralError | ( | ) | throw () [inline, virtual] |
virtual std::string GeneralError::getErrorMsg | ( | ) | const [inline, virtual] |
Returns error string.
In derived classes, this function returns an error message extended with context information of the error. what() just returns the message itself. In this base class, getErrorMsg() is equal to what().
Reimplemented in PluginError, and SyntaxError.
Definition at line 73 of file Error.h.
Referenced by main().