use std::error;
use std::fmt::{Display, Formatter};
#[derive(Debug, PartialEq)]
pub enum Error {
CtyFileError(String),
CSVError(String),
ParseError(String),
PrefixNotFound,
CountryCodeNotFound,
CountryNotFound,
VersionNotFound,
VersionEntityNotFound,
#[cfg(feature = "load_cty")]
DownloadConnectionError,
#[cfg(feature = "load_cty")]
DownloadResponseError(u16),
}
impl Display for Error {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f, "{:?}", self)
}
}
impl error::Error for Error {}