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
NoTokenError
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.
AuthError
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.
BadHeaderError(StatusCode)
The API returned an unexpected HTTP header.
This is usually caused by not defining a proper bot_id or group_id.
ReqwestError(Error)
Error communicating with the API.
SerdeError(Error)
Error parsing returned JSON values.
GenericError
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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more