40 const std::string& message)
61 if (message.length() > 0) {
87 m_message =
"Unable to open FITS file \"" + filename +
"\"";
94 if (message.length() > 0)
110 std::string filename,
117 m_message =
"Attempted to overwrite FITS file \"" + filename +
"\"";
145 if (message.length() > 0)
160 std::string filename)
166 m_message =
"FITS file \"" + filename +
"\" is already open";
188 m_message =
"Column \"" + colname +
"\" not found in table";
266 m_message =
"HDU \"" + extname +
"\" not found in FITS file";
445 " with the number of rows (" +
gammalib::str(rows) +
") in the"
488 m_message =
"Wrong image pixel access operator has been used (dimension=" +
517 if (message.length() > 0)
546 if (message.length() > 0)
563 std::vector<int> tdim,
571 if (tdim.size() < 1) {
572 m_message =
"Empty TDIM keyword encountered.";
578 for (
int k = 1; k < tdim.size(); ++k) {
586 " elements, while there are "+
gammalib::str(number)+
" elements"
591 if (message.length() > 0)
fits_already_opened(std::string origin, std::string filename)
FITS error: file already open.
std::string number(const std::string &noun, const int &number)
Convert singular noun into number noun.
fits_file_not_open(std::string origin, std::string filename)
FITS error: file not open.
fits_unknown_coltype(std::string origin, std::string colname, int type)
FITS error: Column type is unknown.
fits_hdu_not_image(std::string origin, std::string extname, int type)
FITS error: HDU not an image.
fits_hdu_not_found(std::string origin, std::string extname, int status=0)
FITS error: HDU not found in FITS file.
fits_bad_bitpix(std::string origin, int bitpix)
FITS error: invalid number of bits per pixel.
fits_invalid_type(std::string origin, std::string message)
FITS error: Invalid type.
fits_invalid_nrows(std::string origin, int nrows, int max_rows, std::string message="")
FITS error: Invalid number of rows.
fits_column_not_found(std::string origin, std::string colname, int status=0)
FITS error: Table column not found.
fits_no_data(std::string origin, std::string message, int status=0)
FITS error: No data.
fits_inconsistent_tdim(std::string origin, std::vector< int > tdim, int number, std::string message="")
FITS error: Inconsistent TDIM information.
CFITSIO interface header.
fits_wrong_image_operator(std::string origin, int naxis, int nargs)
FITS error: wrong image operator has been used.
fits_hdu_not_table(std::string origin, std::string extname, int type)
FITS error: HDU not a table.
fits_file_exist(std::string origin, std::string filename, int status=0)
FITS error: attempted to overwrite FITS file.
fits_bad_col_length(std::string origin, int length, int rows)
FITS error: Bad column length.
fits_invalid_row(std::string origin, int row, int nrows, std::string message="")
FITS error: Invalid row number.
fits_unknown_tabtype(std::string origin, int type)
FITS error: Table type is unknow.
Exception handler interface definition.
fits_open_error(std::string origin, std::string filename, int status, std::string message="")
FITS error: unable to open FITS file.
fits_unknown_HDU_type(std::string origin, int type)
FITS error: HDU of unknown type found.
fits_error(const std::string &origin, const int &status, const std::string &message="")
General FITS error.
std::string str(const unsigned short int &value)
Convert unsigned short integer value into string.