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

thrown on failure to create new file More...

#include <FITS.h>

Inheritance diagram for CCfits::FITS::CantCreate:
CCfits::FitsException

Public Member Functions

 CantCreate (const String &diag, bool silent=false)
 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 create new file

Constructor & Destructor Documentation

◆ CantCreate()

CCfits::FITS::CantCreate::CantCreate ( const String &  msg,
bool  silent = false 
)

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

This exception will be thrown if the user attempts to write to a protected directory or attempts to create a new file with the same name as an existing file without specifying overwrite [overwrite is specified by adding the character '!' before the filename, following the cfitsio convention].

Parameters
msgA 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: