#include <FitsFile.h>
Exception thrown if trying to write a read-only file.
Static Public Member Functions | |
static void | may_throw (const std::string &prefix, FileMode mode) |
Throw if mode is read-only. | |
Public Member Functions | |
ReadOnlyError (const std::string &prefix) | |
Constructor. More... | |
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) |