Static
createCreates a command error with context.
The command that failed
The device ID
Optional
cause: ErrorThe underlying cause
A descriptive command error
Static
createCreates a connection error with context.
The device ID that failed to connect
Optional
cause: ErrorThe underlying cause of the connection failure
A descriptive connection error
Static
createCreates a timeout error with context.
The operation that timed out
The timeout duration in milliseconds
A descriptive timeout error
Static
withWraps 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.