1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error("Image dimensions do not match")]
    DimensionMismatch,

    #[error("Attempted to blend images with an unsupported color type")]
    UnsupportedType,

    #[error("Image 'a' of type {0} cannot accept blends from image 'b' of type {1}")]
    UnsupportedBlend(&'static str, &'static str),

    #[error("Cannot access alpha channel as image does not have an alpha channel")]
    NoAlphaChannel,
}