docs: Document RumaApiError variants

This commit is contained in:
Kévin Commaille
2022-04-26 18:49:21 +02:00
parent 189ae93e90
commit dfdaea786b
+3
View File
@@ -47,8 +47,11 @@ pub type HttpResult<T> = std::result::Result<T, HttpError>;
/// representation if the endpoint is from that.
#[derive(Error, Debug)]
pub enum RumaApiError {
/// A client API response error.
#[error(transparent)]
ClientApi(ruma::api::client::Error),
/// Another API reponse error.
#[error(transparent)]
Other(ruma::api::error::MatrixError),
}