libusb_error enum
\ingroup libusb_misc Error codes. Most libusb functions return 0 on success or one of these codes on failure. You can call libusb_error_name() to retrieve a string representation of an error code or libusb_strerror() to get an end-user suitable description of an error code.
Values
- LIBUSB_SUCCESS → const libusb_error
-
Success (no error)
const libusb_error(0)
- LIBUSB_ERROR_IO → const libusb_error
-
Input/output error
const libusb_error(-1)
- LIBUSB_ERROR_INVALID_PARAM → const libusb_error
-
Invalid parameter
const libusb_error(-2)
- LIBUSB_ERROR_ACCESS → const libusb_error
-
Access denied (insufficient permissions)
const libusb_error(-3)
- LIBUSB_ERROR_NO_DEVICE → const libusb_error
-
No such device (it may have been disconnected)
const libusb_error(-4)
- LIBUSB_ERROR_NOT_FOUND → const libusb_error
-
Entity not found
const libusb_error(-5)
- LIBUSB_ERROR_BUSY → const libusb_error
-
Resource busy
const libusb_error(-6)
- LIBUSB_ERROR_TIMEOUT → const libusb_error
-
Operation timed out
const libusb_error(-7)
- LIBUSB_ERROR_OVERFLOW → const libusb_error
-
Overflow
const libusb_error(-8)
- LIBUSB_ERROR_PIPE → const libusb_error
-
Pipe error
const libusb_error(-9)
- LIBUSB_ERROR_INTERRUPTED → const libusb_error
-
System call interrupted (perhaps due to signal)
const libusb_error(-10)
- LIBUSB_ERROR_NO_MEM → const libusb_error
-
Insufficient memory
const libusb_error(-11)
- LIBUSB_ERROR_NOT_SUPPORTED → const libusb_error
-
Operation not supported or unimplemented on this platform
const libusb_error(-12)
- LIBUSB_ERROR_OTHER → const libusb_error
-
Other error
const libusb_error(-99)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
int value) → libusb_error
Constants
-
values
→ const List<
libusb_error> - A constant List of the values in this enum, in order of their declaration.