pub enum Error {
VkApi(VkError),
PeerIdNotFound,
UnexpectedResponse(String),
EventAnswerUnkownStatus {
status: i8,
},
SerdeJson(Error),
Reqwest(Error),
DimOutOfRange {
shape: Shape,
dim: usize,
},
ListenerNotFound,
EventsOutdated {
new_ts: String,
},
KeyExpired,
InformationLost,
}
Variants§
VkApi(VkError)
PeerIdNotFound
Error to be used when peer_id
is not found in callback from VK
UnexpectedResponse(String)
EventAnswerUnkownStatus
SerdeJson(Error)
Reqwest(Error)
DimOutOfRange
ListenerNotFound
Indicates that the listener for a specific command was not found.
EventsOutdated
The event history has become outdated or has been partially lost. This can occur if the client fails to
poll the server in a timely manner, causing a gap in the event sequence. The client should continue polling
with the new ts
value provided. This is not a critical error but indicates that some events might have been missed.
KeyExpired
The session key used for the Long Poll connection has expired. This requires obtaining a new session key by
calling the groups.getLongPollServer
method again. Expired keys are common and expected to happen from time
to time; they simply indicate that the connection to the Long Poll server needs to be refreshed.
InformationLost
All session information has been lost, necessitating the initiation of a new Long Poll session. This error typically indicates that the server and key information are no longer valid, possibly due to a significant lapse in polling or server-side changes. Start a new session by re-fetching the server, key, and ‘ts’ values.