bw_verifier 0.3.1

The application which verifies and benchmarks KhulnaSoft Framework Benchmark test implementations.
use std::{env, io, num};

use thiserror::Error;

pub type VerifierResult<T> = Result<T, VerifierError>;

#[derive(Error, Debug)]
pub enum VerifierError {
    #[error("Curl error occurred")]
    CurlError(#[from] curl::Error),

    #[error("IO error occurred")]
    IoError(#[from] io::Error),

    #[error("Serde json error")]
    SerdeJsonError(#[from] serde_json::error::Error),

    #[error("Environment variable error occurred")]
    EnvVarError(#[from] env::VarError),

    #[error("Parse int error occurred")]
    ParseIntError(#[from] num::ParseIntError),

    #[error("Strum parse error occurred")]
    StrumParseError(#[from] strum::ParseError),

    #[error("Invalid database type error: {0}")]
    InvalidDatabaseType(String),

    #[error("Non-200 response from {0}: {1}")]
    Non200Response(String, u32),

    #[error("Error requesting {0}: {1}")]
    RequestError(String, String),
}