Open Babel
3.0
|
#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) |
Customizable error handling and logging – store a message, including the method yielding the error, causes, etc.
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().
|
inline |
|
inline |
Referenced by OBError::operator==().
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by OBMessageHandler::GetMessagesOfLevel(), and OBMessageHandler::ThrowError().
bool operator== | ( | const OBError & | other | ) | const |
|
friend |
Output a formatted message string.
|
protected |
The method causing the error (typically from the compiler macro FUNCTION)
Referenced by OBError::message().
|
protected |
The actual error message.
Referenced by OBError::message().
|
protected |
Optional explanation message: more detailed than the brief error.
Referenced by OBError::message().
|
protected |
Optional cause message.
Referenced by OBError::message().
|
protected |
Optional workaround or remedy.
Referenced by OBError::message().
|
protected |
The severity level: used for filtering via OBMessageHandler.
Referenced by OBError::message().