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";
Special runtime exception to carry a native error code.
Definition: exception.hpp:25
int ErrorCode()
Retuns the error code. See Cvb::ErrorCodes.
Definition: exception.hpp:50
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
OpcUaException(int errorCode) noexcept
Creates a runtime exception to carry a native error code.
Definition: exception.hpp:31
const int CVB_ERROR
Generic unspecified error.
Definition: exception.hpp:24
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24