| |
- PhidgetErrorCodes
- exceptions.Exception(exceptions.BaseException)
-
- PhidgetException
class PhidgetErrorCodes |
| |
Data and other attributes defined here:
- EPHIDGET_BADPASSWORD = 10
- EPHIDGET_DUPLICATE = 12
- EPHIDGET_EVENT = 15
- EPHIDGET_INTERRUPTED = 6
- EPHIDGET_INVALID = 7
- EPHIDGET_INVALIDARG = 4
- EPHIDGET_NETWORK = 8
- EPHIDGET_NETWORK_NOTCONNECTED = 16
- EPHIDGET_NOMEMORY = 2
- EPHIDGET_NOTATTACHED = 5
- EPHIDGET_NOTFOUND = 1
- EPHIDGET_OK = 0
- EPHIDGET_OUTOFBOUNDS = 14
- EPHIDGET_TIMEOUT = 13
- EPHIDGET_UNEXPECTED = 3
- EPHIDGET_UNKNOWNVAL = 9
- EPHIDGET_UNSUPPORTED = 11
- EPHIDGET_WRONGDEVICE = 17
- PHIDGET_ERREVENT_BADPASSWORD = 32770
- PHIDGET_ERREVENT_BADPOWER = 36872
- PHIDGET_ERREVENT_BADVERSION = 32771
- PHIDGET_ERREVENT_CODE_COUNT = 10
- PHIDGET_ERREVENT_NETWORK = 32769
- PHIDGET_ERREVENT_OUTOFRANGE = 36871
- PHIDGET_ERREVENT_OVERCURRENT = 36870
- PHIDGET_ERREVENT_OVERRUN = 36866
- PHIDGET_ERREVENT_OVERTEMP = 36869
- PHIDGET_ERREVENT_PACKETLOST = 36867
- PHIDGET_ERREVENT_WRAP = 36868
- PHIDGET_ERROR_CODE_COUNT = 20
- PHIDGET_ERR_BADVERSION = 19
- PHIDGET_ERR_CLOSED = 18
|
class PhidgetException(exceptions.Exception) |
|
This class represents Phidget related exceptions.
All Phidget exceptions originate in the phidget21 C library.
These exceptions can be thrown by most function in the library and cover such things as trying to access a Phidget before opening it,
or before it is attached and ready to use, out of bounds Index and data values,
trying to read data that isn't available, and other less common problems.
Extends:
Exception |
|
- Method resolution order:
- PhidgetException
- exceptions.Exception
- exceptions.BaseException
- __builtin__.object
Methods defined here:
- __init__(self, code)
Static methods defined here:
- getErrorDescription(self, code)
Data descriptors defined here:
- __weakref__
- list of weak references to the object (if defined)
Data and other attributes inherited from exceptions.Exception:
- __new__ = <built-in method __new__ of type object at 0x1E1D58E8>
- T.__new__(S, ...) -> a new object with type S, a subtype of T
Methods inherited from exceptions.BaseException:
- __delattr__(...)
- x.__delattr__('name') <==> del x.name
- __getattribute__(...)
- x.__getattribute__('name') <==> x.name
- __getitem__(...)
- x.__getitem__(y) <==> x[y]
- __getslice__(...)
- x.__getslice__(i, j) <==> x[i:j]
Use of negative indices is not supported.
- __reduce__(...)
- __repr__(...)
- x.__repr__() <==> repr(x)
- __setattr__(...)
- x.__setattr__('name', value) <==> x.name = value
- __setstate__(...)
- __str__(...)
- x.__str__() <==> str(x)
- __unicode__(...)
Data descriptors inherited from exceptions.BaseException:
- __dict__
- args
- message
| |