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