5 #ifndef CORELINKEXCEPTION_H 6 #define CORELINKEXCEPTION_H 14 inline CorelinkException::CorelinkException(
const std::string& msg,
const int& code) :
15 std::runtime_error(
Corelink::Const::ErrorCodeString[code] +
": " + msg),
19 inline void CorelinkException::GetDLLException(
const unsigned int errorID) {
20 if (errorID == 0) {
return; }
24 errorLen = CorelinkDLL::getErrorLen(errorID);
26 errorMsg =
new char[errorLen];
27 if (!CorelinkDLL::getErrorStr(errorID, errorMsg)) {
35 errorMsg = CorelinkDLL::getError(errorID, errorLen);
38 CorelinkDLL::freeData(errorMsg);
46 std::runtime_error(
Corelink::Const::ErrorCodeString[rhs.code] +
": " + rhs.msg),
47 msg(rhs.msg), code(rhs.code)
Defines the classes in the wrapper and their relations.