Skip to main content

Module error

Module error 

Source
Available on crate feature api only.
Expand description

This module contains types for all kinds of errors that can occur when converting between http requests / responses and ruma’s representation of matrix API requests / responses.

Structs§

BadStatusErrorData
Data for the M_BAD_STATUS ErrorKind.
Error
An error returned from a Matrix API endpoint.
IncompatibleRoomVersionErrorData
Data for the M_INCOMPATIBLE_ROOM_VERSION ErrorKind.
IncorrectArgumentCount
An error that happens when an incorrect amount of arguments have been passed to PathBuilder parts formatting.
LimitExceededErrorData
Data for the M_LIMIT_EXCEEDED ErrorKind.
ResourceLimitExceededErrorData
Data for the M_RESOURCE_LIMIT_EXCEEDED ErrorKind.
StandardErrorBody
A JSON body with the fields expected for Matrix API endpoints errors.
UnknownTokenErrorData
Data for the M_UNKNOWN_TOKEN ErrorKind.
UnknownVersionError
An error that happens when Ruma cannot understand a Matrix version.
UserLimitExceededErrorData
Data for the M_USER_LIMIT_EXCEEDED ErrorKind.
WrongRoomKeysVersionErrorData
Data for the M_WRONG_ROOM_KEYS_VERSION ErrorKind.

Enums§

DeserializationError
An error when converting a http request / response to one of ruma’s endpoint-specific request / response types.
ErrorBody
The body of a Matrix API endpoint error.
ErrorCode
The possible error codes defined in the Matrix spec.
ErrorKind
An enum for the error kind.
FromHttpRequestError
An error when converting a http request to one of ruma’s endpoint-specific request types.
FromHttpResponseError
An error when converting a http response to one of Ruma’s endpoint-specific response types.
HeaderDeserializationError
An error when deserializing the HTTP headers.
HeaderSerializationError
An error when serializing the HTTP headers.
IntoHttpError
An error when converting one of ruma’s endpoint-specific request or response types to the corresponding http type.
MultipartMixedDeserializationError
An error when deserializing a multipart/mixed response.
RetryAfter
How long a client should wait before it tries again.

Traits§

FromHttpResponseErrorExt
Extension trait for FromHttpResponseError<Error>.