EleFits  4.0.0
A modern C++ API on top of CFitsIO
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Euclid::Cfitsio::CfitsioError Class Reference

#include <ErrorWrapper.h>

Class Description

The error class which is thrown when an error occurs in a CFitsIO routine.

Inheritance diagram for Euclid::Cfitsio::CfitsioError:
[legend]

Public Member Functions

virtual ~CfitsioError ()=default
 Destructor.
 
 CfitsioError (int cfitsioStatus)
 Create from CFitsIO error code. More...
 
 CfitsioError (int cfitsioStatus, fitsfile *fptr, const std::string &context)
 Create a CfitsioError. More...
 
- Public Member Functions inherited from Euclid::Fits::FitsError
virtual ~FitsError ()=default
 Destructor.
 
 FitsError (const std::string &message)
 Constructor. More...
 
const char * what () const noexcept override
 Output message.
 
void append (const std::string &line, std::size_t indent=0)
 Append some line to the message. More...
 

Static Public Member Functions

static std::string message (int cfitsioStatus)
 Get the error message of an error code.
 
static void mayThrow (int cfitsioStatus)
 Throw a CfitsioError if cfitsioStatus > 0.
 
static void mayThrow (int cfitsioStatus, fitsfile *fptr, const std::string &context)
 Throw a CfitsioError if cfitsioStatus > 0.
 

Public Attributes

int status
 The CFitsIO error code.
 

The documentation for this class was generated from the following file: