Module ruma::api::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.


  • An error that happens when an incorrect amount of arguments have been passed to PathData parts formatting.
  • A general-purpose Matrix error type consisting of an HTTP status code and a JSON body.
  • An error that happens when Ruma cannot understand a Matrix version.