Skip to main content

telraam/
error.rs

1//! Error types from the Telraam API
2
3use thiserror::Error;
4
5use crate::response::Status;
6
7/// Various error types from the Telraam API
8#[derive(Error, Debug)]
9pub enum Error {
10    /// An error occured on the request
11    #[error("status_code:{}:{}", .0.status_code, .0.message)]
12    Non200Response(Status),
13}