use reqwest::{header::InvalidHeaderValue, Error as ReqwestError};
use thiserror::Error as ThisError;
#[derive(Debug, ThisError)]
pub enum Error {
#[error("Reqwest got error: {0:?}")]
AnyReqwestError(ReqwestError),
#[error("Token not found in environment")]
TokenNotFound,
#[error("No data found")]
NoData,
#[error("Sprint not found: {0}")]
SprintNotFound(String),
#[error("Sprint id is invalid")]
InvalidSprintId,
#[error("Board not found: {0}")]
BoardNotFound(String),
#[error("Board id is invalid")]
InvalidBoardId,
#[error("Unsuported request method")]
UnsupportedMethod,
#[error("Header is invalid")]
InvalidHeader(InvalidHeaderValue),
}