StaticcreateCreates a command error with context.
The command that failed
The device ID
Optionalcause: ErrorThe underlying cause
A descriptive command error
StaticcreateCreates a connection error with context.
The device ID that failed to connect
Optionalcause: ErrorThe underlying cause of the connection failure
A descriptive connection error
StaticcreateCreates a timeout error with context.
The operation that timed out
The timeout duration in milliseconds
A descriptive timeout error
StaticwithWraps an async operation with timeout and enhanced error handling.
The async operation to wrap
Timeout in milliseconds
Name of the operation for error messages
Promise that resolves with the operation result or rejects with timeout
Enhanced error handling utilities.