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§
- BadStatus
Error Data - Data for the
M_BAD_STATUSErrorKind. - Error
- An error returned from a Matrix API endpoint.
- Incompatible
Room Version Error Data - Data for the
M_INCOMPATIBLE_ROOM_VERSIONErrorKind. - Incorrect
Argument Count - An error that happens when an incorrect amount of arguments have been passed to
PathBuilderparts formatting. - Limit
Exceeded Error Data - Data for the
M_LIMIT_EXCEEDEDErrorKind. - Resource
Limit Exceeded Error Data - Data for the
M_RESOURCE_LIMIT_EXCEEDEDErrorKind. - Standard
Error Body - A JSON body with the fields expected for Matrix API endpoints errors.
- Unknown
Token Error Data - Data for the
M_UNKNOWN_TOKENErrorKind. - Unknown
Version Error - An error that happens when Ruma cannot understand a Matrix version.
- User
Limit Exceeded Error Data - Data for the
M_USER_LIMIT_EXCEEDEDErrorKind. - Wrong
Room Keys Version Error Data - Data for the
M_WRONG_ROOM_KEYS_VERSIONErrorKind.
Enums§
- Deserialization
Error - An error when converting a http request / response to one of ruma’s endpoint-specific request / response types.
- Error
Body - The body of a Matrix API endpoint error.
- Error
Code - The possible error codes defined in the Matrix spec.
- Error
Kind - An enum for the error kind.
- From
Http Request Error - An error when converting a http request to one of ruma’s endpoint-specific request types.
- From
Http Response Error - An error when converting a http response to one of Ruma’s endpoint-specific response types.
- Header
Deserialization Error - An error when deserializing the HTTP headers.
- Header
Serialization Error - An error when serializing the HTTP headers.
- Into
Http Error - An error when converting one of ruma’s endpoint-specific request or response types to the corresponding http type.
- Multipart
Mixed Deserialization Error - An error when deserializing a
multipart/mixedresponse. - Retry
After - How long a client should wait before it tries again.
Traits§
- From
Http Response Error Ext - Extension trait for
FromHttpResponseError<Error>.