pdcomm::opcua::check
Function
Throws for a failed C ABI status.
inline void check(int32_t status)Call it directly after the C function so that the thread's last error text still belongs to that call.
Parameters
| Name | Description |
|---|---|
status | Status returned by a C ABI function. |
Notes
- Throws
error: withstatusand the last error text (or a generic text when it is empty) unlessstatusis #PDCOMM_OPCUA_OK.