uerrno – Error codes
errno attribute of an OSError indicates why this
exception was raised. This attribute has one of the following values.
See also this example.
The operation is not complete and should be tried again soon.
The device or resource is busy and cannot be used right now.
The operation was canceled.
An invalid argument was given. Usually
ValueError is used instead.
An unspecified error occurred.
Device was not found. For example, a sensor or motor is not plugged in the correct port.
The operation is not supported on this hub or on the connected device.
The operation cannot be performed in the current state.
The operation timed out.
errorcode: Dict[int, str]
Dictionary that maps numeric error codes to strings with symbolic error code.