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
BadSenderOrRecipientThe recipient identity is invalid or the account is not set up for basic mode
BadCredentialsAPI identity or secret is incorrect
NoCreditsNo credits remain
IdNotFoundTarget ID not found
MessageTooLongMessage is too long
ServerErrorInternal server error
BadHashLengthWrong hash length
BadBlobBad blob
BadBlobIdInvalid blob ID
RequestError(ReqwestError)Error when sending request (via reqwest)
IoError(IoError)Error when reading response
ParseError(String)Error while parsing response
Other(String)Other
Trait Implementations
impl Debug for ApiError[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Display for ApiError
impl Error for ApiError
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<ReqwestError> for ApiError
fn from(err: ReqwestError) -> ApiError
Performs the conversion.