MCPcopy Create free account
hub / github.com/LabPy/lantz / U12Exception

Class U12Exception

lantz/drivers/labjack/_internal/u12.py:44–63  ·  view source on GitHub ↗

Custom Exception meant for dealing specifically with U12 Exceptions. Error codes are either going to be a LabJackUD error code or a -1. The -1 implies a python wrapper specific error. def __init__(self, ec = 0, errorString = ''): self.errorCode = ec self.errorString = e

Source from the content-addressed store, hash-verified

42ON_WINDOWS = (os.name == 'nt')
43
44class U12Exception(Exception):
45 """Custom Exception meant for dealing specifically with U12 Exceptions.
46
47 Error codes are either going to be a LabJackUD error code or a -1. The -1 implies
48 a python wrapper specific error.
49 def __init__(self, ec = 0, errorString = ''):
50 self.errorCode = ec
51 self.errorString = errorString
52
53 if not self.errorString:
54 #try:
55 self.errorString = getErrorString(ec)
56 #except:
57 # self.errorString = str(self.errorCode)
58
59 def __str__(self):
60 return self.errorString
61
62 """
63 pass
64
65class BitField(object):
66 """

Callers 15

errcheckFunction · 0.70
u12.pyFile · 0.70
openMethod · 0.70
writeMethod · 0.70
readMethod · 0.70
rawAISampleMethod · 0.70
rawDIOMethod · 0.70
rawCounterMethod · 0.70
rawAIBurstMethod · 0.70
rawPulseoutMethod · 0.70
rawReadRAMMethod · 0.70
rawWriteRAMMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected