CCfits  2.6
Public Member Functions | List of all members
CCfits::FITS::CantOpen Class Reference

thrown on failure to open existing file More...

#include <FITS.h>

Inheritance diagram for CCfits::FITS::CantOpen:
CCfits::FitsException

Public Member Functions

 CantOpen (const String &diag, bool silent=true)
 Exception ctor prefixes the string: "FITS Error: Cannot create file " before specific message. More...
 
- Public Member Functions inherited from CCfits::FitsException
 FitsException (const string &msg, bool &silent)
 
const string & message () const
 returns the error message More...
 

Detailed Description

thrown on failure to open existing file

Constructor & Destructor Documentation

◆ CantOpen()

CCfits::FITS::CantOpen::CantOpen ( const String &  diag,
bool  silent = true 
)

Exception ctor prefixes the string: "FITS Error: Cannot create file " before specific message.

This exception will be thrown if users attempt to open an existing file for write access to which they do not have permission, or of course if the file does not exist.

Parameters
diagA specific diagnostic message, the name of the file that was to be created.
silentif true, print message whether FITS::verboseMode is set or not.

The documentation for this class was generated from the following files: