Documentation
¶
Overview ¶
Package roborockerrors defines failures shared by the public API and transports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error preserves a failure class, operation, vendor code, and underlying cause. Message must not contain credentials or untrusted response bodies.
func Wrap ¶
Wrap preserves a typed failure's classification and code with a caller-safe operation. Untyped failures use fallback without exposing the underlying cause in the message.
type Kind ¶
type Kind string
Kind is a stable failure class.
const ( // InvalidArgument indicates an invalid request or option. InvalidArgument Kind = "invalid_argument" Unauthorized Kind = "unauthorized" // NotFound indicates a missing account or device. NotFound Kind = "not_found" // RateLimited indicates vendor throttling. RateLimited Kind = "rate_limited" Unavailable Kind = "unavailable" // Timeout indicates that a request deadline elapsed. Timeout Kind = "timeout" // Canceled indicates caller cancellation. Canceled Kind = "canceled" // Protocol indicates a malformed response or rejected operation. Protocol Kind = "protocol" // Closed indicates a closed session. Closed Kind = "closed" // Unsupported indicates an unsupported protocol or capability. Unsupported Kind = "unsupported" // Backpressure indicates a full session queue. Backpressure Kind = "backpressure" )
Click to show internal directories.
Click to hide internal directories.