use std::path::PathBuf;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum DomainError {
#[error("The path '{0}' does not exist")]
PathNotExist(PathBuf),
#[error("The path '{0}' must be a directory")]
PathIsNotDirectory(PathBuf),
#[error("The path '{0}' must be a file")]
PathIsNotFile(PathBuf),
#[error("The file '{0}' has no extension")]
FileHasNoExtension(PathBuf),
#[error("The extension of an image file in a frame must be one of the following: bmp, gif, pcx, png")]
InvalidFrameImageExtension(PathBuf),
}