oliframe 0.3.8

Add a simple border to one or more images
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Error types for the oliframe crate.

use std::path::PathBuf;

/// Standard error type for the oliframe crate.
#[derive(Debug, thiserror::Error, PartialEq)]
pub enum OliframeError {
    /// An error occurred while reading or decoding an image file.
    #[error("Unable to open image file at: {0}")]
    ImageUnreadable(PathBuf),
    /// User input was invalid.
    #[error("Invalid input: {0}")]
    InvalidInput(String),
    /// An error occurred while saving an image.
    #[error("Unable to save image: {0}. {1}")]
    SaveError(PathBuf, String),
}