StaleRequestError class

Indicates that a request's timeout fired after the WebSocket was replaced by a newer connection (socket generation mismatch). The request is effectively cancelled — its promise is settled with this error so callers never hang, but signaling recovery must NOT be triggered since the new socket is healthy.

Implemented types

Constructors

StaleRequestError(String requestId, int staleGeneration, int currentGeneration)
Creates a stale request error for a cancelled, superseded request.

Properties

currentGeneration → int
The current (replacement) socket generation.
final
hashCode → int
The hash code for this object.
no setterinherited
requestId → String
The request ID that was cancelled.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
staleGeneration → int
The generation of the stale socket.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited