summaryrefslogtreecommitdiff
path: root/src/errors.rs
blob: 54b6f884e81f389449e8fd21a534085ac26e166d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::num::ParseIntError;

use thirtyfour::prelude::WebDriverError;
use thiserror::Error;

#[derive(Debug, Error)]
pub enum CliError {
    #[error("Command Error: {0}")]
    Cli(String),
    #[error("I/O Error: {0}")]
    IO(#[from] std::io::Error),
    #[error("TOML Error: {0}")]
    TomlDe(#[from] toml::de::Error),
    #[error("WebDriver Error: {0}")]
    WebDriver(#[from] WebDriverError),
    #[error("Integer Parsing Error: {0}")]
    ParseInt(#[from] ParseIntError)
}