Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Compound Members   Related Pages  

CCfits::FitsException Class Reference

FitsException is the base class for all exceptions thrown by this library. More...

#include <FitsError.h>

Inheritance diagram for CCfits::FitsException::

Inheritance diagram
CCfits::Column::InsufficientElements CCfits::Column::InvalidDataType CCfits::Column::InvalidNumberOfRows CCfits::Column::InvalidRowNumber CCfits::Column::InvalidRowParameter CCfits::Column::NoNullValue CCfits::Column::RangeError CCfits::Column::WrongColumnType CCfits::ExtHDU::WrongExtensionType CCfits::FITS::CantCreate CCfits::FITS::CantOpen CCfits::FITS::NoSuchHDU CCfits::FITS::OperationNotSupported CCfits::FitsError CCfits::HDU::InvalidExtensionType CCfits::HDU::InvalidImageDataType CCfits::HDU::NoNullValue CCfits::HDU::NoSuchKeyword CCfits::Table::NoSuchColumn List of all members.

Public Methods

 FitsException (const string &msg, bool &silent)

Detailed Description

FitsException is the base class for all exceptions thrown by this library.

All exceptions derived from this class can be caught by a single 'catch' clause catching FitsException by reference (which is the point of this base class design).

A static "verboseMode" parameter is provided by the FITS class to control diagnostics - if FITS::verboseMode() is true, all diagnostics are printed (for debugging purposes). If not, then a boolean silent determines printing of messages. Each exception derived from FitsException must define a default value for the silent parameter.


Constructor & Destructor Documentation

CCfits::FitsException::FitsException ( const string & msg,
bool & silent )
 

Parameters:
diag   A diagnostic string to be printed optionally.
silent   A boolean controlling the printing of messages


The documentation for this class was generated from the following files:
Generated at Fri Apr 11 16:05:11 2003 for CCfits by doxygen1.2.7 written by Dimitri van Heesch, © 1997-2001