use std::string;
use thiserror::Error;
#[derive(Error, Debug)]
#[non_exhaustive]
pub enum KodikError {
#[error("{0}")]
Reqwest(#[from] reqwest::Error),
#[error("{0}")]
Decode(#[from] base64::DecodeError),
#[error("{0}")]
FromUtf8(#[from] string::FromUtf8Error),
#[error("{0}")]
Regex(&'static str),
#[error("link cannot be decoded {0}")]
LinkCannotBeDecoded(String),
}