Skip to content
Start free evaluation

pdcomm::opcua::check

Function

Throws for a failed C ABI status.

inline void check(int32_t status)

Declared in: #include <pdcomm/opcua/pdcomm_opcua.hpp>

Call it directly after the C function so that the thread's last error text still belongs to that call.

Parameters

NameDescription
statusStatus returned by a C ABI function.

Notes

  • Throws error: with status and the last error text (or a generic text when it is empty) unless status is #PDCOMM_OPCUA_OK.