uobors_core 0.0.3

Unleash OpenBOR modding in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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),
}