This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
There is not need to instantiate this class in your code. A client will emit an error state via
connectError in case an error has happened while establishing a connection.
The error can be caused by the backend itself or by the server rejecting the connection. If case of errors issued by the local backend, they can be ignored by calling the function
- class PySide6.QtOpcUa.QOpcUaErrorState#
Constructs an error state from
Specifies at which step during the connection establishment the error occurred.
The connection step is unknown.
Error happened in the certificate validation step.
Error happened when opening the secure channel.
Error happened when creating the session.
Error happened during session acivation.
Returns the connection step in which the error occurred.
Returns the OPC UA status code of the error occurred.
- Return type:
Returns if this client side error should be ignored.
- Return type:
Returns if the occurred error is a client side error.
clientSideError – bool
Sets if the occurred error is a client side error to
Sets the connection step in which the error occurred to
Sets the OPC UA status code of the error occurred to
ignore – bool
Sets if this client side error should be ignored to
Setting this flag does only work if the error is actually a client side error.