pub enum FitsError {
Open {
fits_error: Error,
fits_filename: String,
source_file: &'static str,
source_line: u32,
},
MissingKey {
key: String,
fits_filename: String,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
NotImage {
fits_filename: String,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
LongString {
key: String,
fits_filename: String,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
Fitsio {
fits_error: Error,
fits_filename: String,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
Parse {
key: String,
fits_filename: String,
hdu_num: usize,
source_file: &'static str,
source_line: u32,
},
}
Variants
Open
Error when opening a fits file.
MissingKey
Error describing a key that couldn’t be found in a fits header.
NotImage
Error describing a HDU that couldn’t be used as an image (e.g. HduInfo::ImageInfo
).
LongString
Failure to read a long string.
Fitsio
A generic error associated with the fitsio crate.
Parse
An error associated with parsing a string into another type.