EleFits  5.3.1
A modern C++ API on top of CFITSIO
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Public Member Functions | Public Attributes | List of all members
ChecksumError Struct Reference

#include <FitsError.h>

Detailed Description

Exception thrown if a checksum is missing or incorrect.

Public Types

enum  Status {
  Incorrect = -1 ,
  Missing = 0 ,
  Correct = 1
}
 Status of a checksum stored in a header unit. More...
 

Static Public Member Functions

static void may_throw (Status hdu_status, Status data_status)
 Throw if at least one checksum is not correct (missing or incorrect).
 

Public Member Functions

 ChecksumError (Status hdu_status, Status data_status)
 Constructor.
 
bool incorrect () const
 Check whether at least one checksum is incorrect.
 
bool missing () const
 Check whether at least one checksum is missing.
 
- Public Member Functions inherited from FitsError
 FitsError (const std::string &message)
 Constructor. More...
 
virtual ~FitsError ()=default
 Destructor.
 
void append (const std::string &line, std::size_t indent=0)
 Append some line to the message. More...
 
const char * what () const noexcept override
 Output message.
 
- Public Member Functions inherited from exception
exception (T... args)
 
~exception (T... args)
 
operator= (T... args)
 
what (T... args)
 

Public Attributes

Status data
 The checksum of the data unit.
 
Status hdu
 The checksum of the whole HDU.
 

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