28 #define SUCCEEDED(er) (er <= erOK) 29 #define FAILED(er) (!SUCCEEDED(er)) 54 char* p = strerror(errno);
66 char* p = strerror(errno);
67 return std::string(p);
83 const char*
const szError = strerror(m_errno);
85 if (!_ErrorPrefix.empty())
86 ss << _ErrorPrefix <<
". ";
87 ss <<
"System error description [" << m_errno <<
"]: " << szError;
93 virtual const char*
what()
const throw()
system_error(const std::string &_ErrorPrefix)
Definition: ErrorCode.h:80
ERRORCODE_C erXMLReadConfig(BASE_FOR_XML_ERR+2)
ERRORCODE_C BASE_FOR_GENERAL_ERR(50)
The system_error exception class retrieves a string, which represent the last error.
Definition: ErrorCode.h:77
ERRORCODE_C erXMLNullNode(BASE_FOR_XML_ERR+3)
ERRORCODE_C erOK(EXIT_SUCCESS)
const ERRORCODE ERRORCODE_C
Definition: ErrorCode.h:20
int ERRORCODE
Definition: ErrorCode.h:19
ERRORCODE_C erXMLInit(BASE_FOR_XML_ERR+1)
ERRORCODE_C erNULLArg(BASE_FOR_GENERAL_ERR+1)
ERRORCODE_C erError(EXIT_FAILURE)
int getErrno() const
Definition: ErrorCode.h:97
int errno2str(std::string *_msg)
Retrieves a string, which represent the last error.
Definition: ErrorCode.h:50
ERRORCODE_C BASE_FOR_XML_ERR(100)
virtual const char * what() const
Definition: ErrorCode.h:93
ERRORCODE_C erFILE_NOT_FOUND(BASE_FOR_GENERAL_ERR+2)
virtual ~system_error()
Definition: ErrorCode.h:90
Miscellaneous functions and helpers are located here.
Definition: BOOST_FILESYSTEM.h:21