Skip to content
Start free evaluation

pdcomm::opcua::qt_client_failure

Struct

A failure delivered by qt_client_worker::failed().

struct qt_client_failure

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

phase tells where it happened:

  • "begin": client::begin() rejected the request, so it was not sent. With #PDCOMM_OPCUA_INVALID_INPUT or #PDCOMM_OPCUA_LIMIT only this request fails and the worker continues; any other status also ends the worker.
  • "response": the request was sent, but client::take() completed it with #PDCOMM_OPCUA_RUNTIME_ERROR: the server aborted the response (a Part 6 abort chunk; the text names the StatusCode) or the response was invalid. Only this request fails. An invalid response also closes the connection, so the worker then ends with a "worker" failure.
  • "abort": the worker stopped before the request completed (#PDCOMM_OPCUA_CLOSED); the request may or may not have been sent.
  • "worker" with correlation 0: connect, activation, poll, take, close or the adapter itself failed, or run() was started twice; the worker stops.

Members

correlation

Field

Correlation of the failed request, or 0 for a worker failure.

quint64 correlation = 0

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

phase

Field

"begin", "response", "abort" or "worker".

QString phase

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

status

Field

::pdcomm_opcua_status value of the failure.

int32_t status = PDCOMM_OPCUA_OK

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

text

Field

English detail text, copied in the worker thread right after the native call.

QString text

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