Enum groupme_bot::GroupmeError [] [src]

pub enum GroupmeError {
    NoTokenError,
    AuthError,
    BadHeaderError(StatusCode),
    ReqwestError(Error),
    SerdeError(Error),
    GenericError,
}

The error type for any issues occuring while interacting with the Groupme API.

Variants

Caused by calling a method that requires an API token without providing one.

When managing bots (creating or deleting) make sure to provide the Groupme a valid token.

Any request that caused the API to return a header caused by bad authentication with the Groupme API.

This is usually caused by an invalid API token or bad bot_id.

The API returned an unexpected HTTP header.

This is usually caused by not defining a proper bot_id or group_id.

Error communicating with the API.

Error parsing returned JSON values.

Caused by an issue with interacting with the data returned from the API.

This is used when JSON data is parsed but is not valid.

Trait Implementations

impl Debug for GroupmeError
[src]

[src]

Formats the value using the given formatter. Read more

impl From<Error> for GroupmeError
[src]

[src]

Performs the conversion.

impl From<Error> for GroupmeError
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for GroupmeError

impl Sync for GroupmeError