#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... | |
Static Public Member Functions | |
| static void | mayThrow (Status hduStatus, Status dataStatus) | 
| Throw if at least one checksum is not correct (missing or incorrect).  | |
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 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... | |
  Public Member Functions inherited from exception | |
| T | what (T... args) | 
| T | ~exception (T... args) | 
| T | operator= (T... args) | 
| T | exception (T... args) | 
Public Attributes | |
| Status | hdu | 
| The checksum of the whole HDU.  | |
| Status | data | 
| The checksum of the data unit.  | |