rujira 0.4.1

This module provides an API for working with Jira
Documentation
//! This is module documentation for errors
//!
//! The error description is given in the code, press the `source` button
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,

    /// Request errors.
    #[error("Unsuported request method")]
    UnsupportedMethod,

    /// Header errors.
    #[error("Header is invalid")]
    InvalidHeader(InvalidHeaderValue),
}