1use thiserror::Error;
2
3#[derive(Debug, Error)]
5pub enum Error {
6 #[cfg(feature = "fits")]
7 #[error("No image in FITS file")]
8 NoImageInFitsFile,
9
10 #[cfg(feature = "fits")]
11 #[error("Fits io error: {0:?}")]
12 FitsIoError(#[source] Box<dyn std::error::Error + Send + Sync>),
13
14 #[error("Image error: {0:?}")]
15 ImageError(#[from] image::ImageError),
16
17 #[error("The aspect ratio of the image is invalid")]
18 InvalidImageAspectRatio,
19
20 #[error("Failed to solve plate, could not find matching sky marks")]
21 NoMatchingSkyMarks,
22}