Enum threema_gateway::errors::ApiError []

pub enum ApiError {
    BadSenderOrRecipient,
    BadCredentials,
    NoCredits,
    IdNotFound,
    MessageTooLong,
    ServerError,
    BadHashLength,
    BadBlob,
    BadBlobId,
    RequestError(ReqwestError),
    IoError(IoError),
    ParseError(String),
    Other(String),
}

Errors when interacting with the API.

Variants

The recipient identity is invalid or the account is not set up for basic mode

API identity or secret is incorrect

No credits remain

Target ID not found

Message is too long

Internal server error

Wrong hash length

Bad blob

Invalid blob ID

Error when sending request (via reqwest)

Error when reading response

Error while parsing response

Other

Trait Implementations

impl Debug for ApiError
[src]

Formats the value using the given formatter.

impl Display for ApiError

Formats the value using the given formatter. Read more

impl Error for ApiError

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<ReqwestError> for ApiError

Performs the conversion.

impl From<IoError> for ApiError

Performs the conversion.