MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / check

Method check

opcua/ua/uatypes.py:211–218  ·  view source on GitHub ↗

Raises an exception if the status code is anything else than 0 (good). Use the is_good() method if you do not want an exception.

(self)

Source from the content-addressed store, hash-verified

209 self._freeze = True
210
211 def check(self):
212 """
213 Raises an exception if the status code is anything else than 0 (good).
214
215 Use the is_good() method if you do not want an exception.
216 """
217 if not self.is_good():
218 raise UaStatusCodeError(self.value)
219
220 def is_good(self):
221 """

Callers 15

set_valuesMethod · 0.80
check_answerMethod · 0.80
clbMethod · 0.80
open_secure_channelMethod · 0.80
create_sessionMethod · 0.80
activate_sessionMethod · 0.80
close_sessionMethod · 0.80
browseMethod · 0.80
browse_nextMethod · 0.80
readMethod · 0.80
writeMethod · 0.80
get_endpointsMethod · 0.80

Calls 2

is_goodMethod · 0.95
UaStatusCodeErrorClass · 0.90

Tested by

no test coverage detected