quick_error! {
#[derive(Debug)]
pub enum Error {
IoFile(err: std::io::Error) {
from()
}
CardWrongType(key: String, tt: String) {
display("{} could not be parsed {}", key, tt)
}
UnprojNotDefined(img_x: f64, img_y: f64) {
display("({}, {}) is out of projection", img_x, img_y)
}
InitProjection(proj_name: &'static str, msg: &'static str) {
display("{} init error: {}", proj_name, msg)
}
MandatoryWCSKeywordsMissing(keyword: &'static str) {
display("{} keyword is mandatory for defining a WCS", keyword)
}
NotSupportedNaxis(naxis: i64) {
display("NAXIS={} not supported", naxis)
}
NotImplementedProjection(proj_name: String) {
display("Projection '{}' has not been implemented!", proj_name)
}
UnrecognizedRadeSys(radesys: String) {
display("Unrecognized radesys keyword value: '{}'!", radesys)
}
CelestialPoleInvalid {
display("Bad combination of CRVAL1, CRVAL2, LONPOLE leading to an invalid celestial pole")
}
SIPMaxOrderLimitReached {
display("SIP max order limit reached. 6 is the max order supported")
}
}
}