Enum matrix_sdk::Error [−][src]
pub enum Error {
Http(HttpError),
AuthenticationRequired,
SerdeJson(JsonError),
Io(IoError),
CryptoStoreError(CryptoStoreError),
OlmError(OlmError),
MegolmError(MegolmError),
DecryptorError(DecryptorError),
StateStore(StoreError),
Identifier(IdentifierError),
Url(UrlParseError),
}Expand description
Internal representation of errors.
Variants
Http(HttpError)Error doing an HTTP request.
Tuple Fields of Http
0: HttpErrorQueried endpoint requires authentication but was called on an anonymous client.
SerdeJson(JsonError)An error de/serializing type for the StateStore
Tuple Fields of SerdeJson
0: JsonErrorIo(IoError)An IO error happened.
Tuple Fields of Io
0: IoErrorencryption only.An error occurred in the crypto store.
encryption only.An error occurred during a E2EE operation.
encryption only.An error occurred during a E2EE group operation.
encryption only.An error occurred during decryption.
StateStore(StoreError)An error occurred in the state store.
Tuple Fields of StateStore
0: StoreErrorAn error encountered when trying to parse an identifier.
Url(UrlParseError)An error encountered when trying to parse a url.
Tuple Fields of Url
Implementations
Try to destructure the error into an universal interactive auth info.
Some requests require universal interactive auth, doing such a request will always fail the first time with a 401 status code, the response body will contain info how the client can authenticate.
The request will need to be retried, this time containing additional authentication data.
This method is an convenience method to get to the info the server returned on the first, failed request.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more