#include <openbabel/oberror.h>
Public Member Functions | |
OBError (const std::string &method="", const std::string &errorMsg="", const std::string &explanation="", const std::string &possibleCause="", const std::string &suggestedRemedy="", const obMessageLevel=obDebug) | |
std::string | message (void) const |
std::string | GetMethod () const |
std::string | GetError () const |
std::string | GetExplanation () const |
std::string | GetPossibleCause () const |
std::string | GetSuggestedRemedy () const |
obMessageLevel | GetLevel () const |
bool | operator== (const OBError &) const |
Protected Attributes | |
std::string | _method |
std::string | _errorMsg |
std::string | _explanation |
std::string | _possibleCause |
std::string | _suggestedRemedy |
obMessageLevel | _level |
Friends | |
std::ostream & | operator<< (std::ostream &os, const OBError &er) |
OBError | ( | const std::string & | method = "" , |
|
const std::string & | errorMsg = "" , |
|||
const std::string & | explanation = "" , |
|||
const std::string & | possibleCause = "" , |
|||
const std::string & | suggestedRemedy = "" , |
|||
const obMessageLevel | level = obDebug | |||
) |
Constructor for an error message e.g. OBError(__FUNCTION__, " message ").
string message | ( | void | ) | const |
Referenced by OBMessageHandler::GetMessagesOfLevel().
std::string GetMethod | ( | ) | const [inline] |
std::string GetError | ( | ) | const [inline] |
std::string GetExplanation | ( | ) | const [inline] |
std::string GetPossibleCause | ( | ) | const [inline] |
std::string GetSuggestedRemedy | ( | ) | const [inline] |
obMessageLevel GetLevel | ( | ) | const [inline] |
Referenced by OBMessageHandler::GetMessagesOfLevel(), and OBMessageHandler::ThrowError().
bool operator== | ( | const OBError & | other | ) | const |
std::ostream& operator<< | ( | std::ostream & | os, | |
const OBError & | er | |||
) | [friend] |
Output a formatted message string.
std::string _method [protected] |
The method causing the error (typically from the compiler macro __FUNCTION__).
Referenced by OBError::message().
std::string _errorMsg [protected] |
std::string _explanation [protected] |
std::string _possibleCause [protected] |
std::string _suggestedRemedy [protected] |
obMessageLevel _level [protected] |