use crate::BoxError;
use thiserror::Error;
#[derive(Error, Debug)]
pub enum Error {
#[error("Represents a `Option::None` value as an error.")]
None,
#[error(r#"The file name ends in "..", and does therefore not represent a file/directory/valid path."#)]
PathNotAFile,
#[error(
"The string is not valid UTF-8, and can thus not be represented by a normal rust string."
)]
NotValidUtf8,
#[cfg(feature = "url_parse_error")]
#[error(transparent)]
InvalidUrl(#[from] url::ParseError),
#[error(transparent)]
IO(#[from] std::io::Error),
#[error(transparent)]
Boxed(#[from] BoxError),
}