Skip to content

Commit 72adaf4

Browse files
committed
sdk: slightly better doc for HttpError
1 parent c656ad4 commit 72adaf4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

crates/matrix-sdk/src/error.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,24 @@ impl RumaApiError {
8484
/// converting the raw HTTP response into a Matrix response.
8585
#[derive(Error, Debug)]
8686
pub enum HttpError {
87-
/// An error at the HTTP layer.
87+
/// Error at the HTTP layer.
8888
#[error(transparent)]
8989
Reqwest(#[from] ReqwestError),
9090

9191
/// Queried endpoint is not meant for clients.
9292
#[error("the queried endpoint is not meant for clients")]
9393
NotClientRequest,
9494

95-
/// An error converting between ruma_*_api types and Hyper types.
95+
/// API response error (deserialization, or a Matrix-specific error).
9696
#[error(transparent)]
9797
Api(#[from] FromHttpResponseError<RumaApiError>),
9898

99-
/// An error converting between ruma_client_api types and Hyper types.
99+
/// Error when creating an API request (e.g. serialization of
100+
/// body/headers/query parameters).
100101
#[error(transparent)]
101102
IntoHttp(IntoHttpError),
102103

103-
/// An error occurred while refreshing the access token.
104+
/// Error while refreshing the access token.
104105
#[error(transparent)]
105106
RefreshToken(RefreshTokenError),
106107
}

0 commit comments

Comments
 (0)