an exception indicating that a non-recoverable format error was detected in the input Miriad dataset More...
#include <MirExceptions.h>
Public Member Functions | |
MiriadFormatError (const String &msg) | |
create the exception with a message describing the format error | |
virtual | ~MiriadFormatError () throw () |
Protected Member Functions | |
MiriadFormatError () | |
Message-less exceptions should not be created excepted possibly by subclasses. |
an exception indicating that a non-recoverable format error was detected in the input Miriad dataset
Public interface
This exception can be thrown when a Miriad dataset contains some unexpected and/or illegal structures. This may happen if the dataset is corrupted or otherwise does not conform to the legal format specification.
uvprobvr_c(mirds_handle, "sfreq", vtype, &vlen, &vupd); if (vlen != nspect) { throw MiriadFormatError(String("Wrong number of values for variable ") + "sfreq: got " + vlen + "; expected " + nspect); }
This class handles the possibility that a non-conforming or corrupted Miriad dataset is encountered.
Definition at line 121 of file MirExceptions.h.
MiriadFormatError::MiriadFormatError | ( | const String & | msg | ) |
create the exception with a message describing the format error
virtual MiriadFormatError::~MiriadFormatError | ( | ) | throw () [virtual] |
MiriadFormatError::MiriadFormatError | ( | ) | [protected] |
Message-less exceptions should not be created excepted possibly by subclasses.