6 #include "../global.hpp" 7 #include "../exception.hpp" 11 #include "../_cexports/c_opcua.h" 66 if (CVB_CALL_CAPI(CVOPCGetLastErrorString(reinterpret_cast<char*>(0), bufferSize)) < 0)
67 return "unable to get error message buffer size";
69 if (CVB_CALL_CAPI(CVOPCGetLastErrorString(buffer.data(), bufferSize)) < 0)
70 return "unable to get error message";
OpcUaException(int errorCode) noexcept
Creates a runtime exception to carry a native error code.
Definition: exception.hpp:31
OpcUaException(int errorCode, const std::string &msg) noexcept
Creates a runtime exception to carry a user choosen error code and message.
Definition: exception.hpp:41
const int CVB_ERROR
Generic unspecified error.
Definition: exception.hpp:24
int ErrorCode()
Retuns the error code. See Cvb::ErrorCodes.
Definition: exception.hpp:50
Root namespace for the Image Manager interface.
Definition: version.hpp:11
Special runtime exception to carry a native error code.
Definition: exception.hpp:24