Enum mwalib::FitsError[][src]

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.

Show fields

Fields of Open

fits_error: Errorfits_filename: Stringsource_file: &'static strsource_line: u32
MissingKey

Error describing a key that couldn’t be found in a fits header.

Show fields

Fields of MissingKey

key: Stringfits_filename: Stringhdu_num: usizesource_file: &'static strsource_line: u32
NotImage

Error describing a HDU that couldn’t be used as an image (e.g. HduInfo::ImageInfo).

Show fields

Fields of NotImage

fits_filename: Stringhdu_num: usizesource_file: &'static strsource_line: u32
LongString

Failure to read a long string.

Show fields

Fields of LongString

key: Stringfits_filename: Stringhdu_num: usizesource_file: &'static strsource_line: u32
Fitsio

A generic error associated with the fitsio crate.

Show fields

Fields of Fitsio

fits_error: Errorfits_filename: Stringhdu_num: usizesource_file: &'static strsource_line: u32
Parse

An error associated with parsing a string into another type.

Show fields

Fields of Parse

key: Stringfits_filename: Stringhdu_num: usizesource_file: &'static strsource_line: u32

Trait Implementations

impl Debug for FitsError[src]

impl Display for FitsError[src]

impl Error for FitsError[src]

impl From<FitsError> for MwalibError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.