use crate::*;
use thiserror::Error as TError;
#[derive(TError, Debug)]
pub enum Error {
#[error("There was an error when attempting to open the database")]
CannotOpenDB,
#[error("An invalid path was encountered")]
InvalidPath,
#[error("A NULL pointer was encountered")]
NullPointer,
#[error("Image data was accessed using the wrong data type")]
IncorrectImageType,
#[error("An image has been accessed beyond the available dimensions")]
OutOfBounds,
#[error("Imaged specified error")]
Sys(sys::ImagedStatus),
}