![]()  | 
  
    EleFits
    4.0.1
    
   A modern C++ API on top of CFitsIO 
   | 
 
#include <FitsError.h>
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... | |
Public Member Functions | |
| ChecksumError (Status hduStatus, Status dataStatus) | |
| Constructor.  | |
| bool | missing () const | 
| Check whether at least one checksum is missing.  | |
| bool | incorrect () const | 
| Check chether at least one checksum is incorrect.  | |
  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 void | mayThrow (Status hduStatus, Status dataStatus) | 
| Throw if at least one checksum is not correct (missing or incorrect).  | |
Public Attributes | |
| Status | hdu | 
| The checksum of the whole HDU.  | |
| Status | data | 
| The checksum of the data unit.  | |