MiriadFormatError Class Reference

an exception indicating that a non-recoverable format error was detected in the input Miriad dataset More...

#include <MirExceptions.h>

List of all members.

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.

Detailed Description

an exception indicating that a non-recoverable format error was detected in the input Miriad dataset

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Synopsis

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.

Example

 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);
 }

Motivation

This class handles the possibility that a non-conforming or corrupted Miriad dataset is encountered.

Definition at line 121 of file MirExceptions.h.


Constructor & Destructor Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1