#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 | 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 | |
| T | exception (T... args) |
| T | ~exception (T... args) |
| T | operator= (T... args) |
| T | what (T... args) |
Public Attributes | |
| Status | data |
| The checksum of the data unit. | |
| Status | hdu |
| The checksum of the whole HDU. | |