image_blend/error.rs
1#[derive(Debug, thiserror::Error)]
2pub enum Error {
3 #[error("Image dimensions do not match")]
4 DimensionMismatch,
5
6 #[error("Attempted to blend images with an unsupported color type")]
7 UnsupportedType,
8
9 #[error("Image 'a' of type {0} cannot accept blends from image 'b' of type {1}")]
10 UnsupportedBlend(&'static str, &'static str),
11
12 #[error("Cannot access alpha channel as image does not have an alpha channel")]
13 NoAlphaChannel,
14}