dlvhex
2.5.0
|
A plugin error is thrown by plugins and caught inside dlvhex. More...
#include <include/dlvhex2/Error.h>
Public Member Functions | |
PluginError (const std::string &msg) | |
Constructor. | |
virtual | ~PluginError () throw () |
See SyntaxError::~SyntaxError(). | |
void | setContext (const std::string &ctx) |
Sets the context of the error. | |
virtual std::string | getErrorMsg () const |
Returns a formatted error message. | |
Private Attributes | |
std::string | context |
Error context. |
A plugin error is thrown by plugins and caught inside dlvhex.
PluginError::PluginError | ( | const std::string & | msg | ) | [explicit] |
virtual PluginError::~PluginError | ( | ) | throw () [inline, virtual] |
std::string PluginError::getErrorMsg | ( | ) | const [virtual] |
Returns a formatted error message.
The returned. message is built from the context and the actual error message.
msg | Error message. |
Reimplemented from GeneralError.
Definition at line 116 of file Error.cpp.
References context.
void PluginError::setContext | ( | const std::string & | ctx | ) |
std::string PluginError::context [private] |
Error context.
Definition at line 195 of file Error.h.
Referenced by getErrorMsg(), and setContext().