CCfits  2.6
Public Member Functions | List of all members
CCfits::Column::WrongColumnType Class Reference

Exception thrown on attempting to access a scalar column as vector data. More...

#include <Column.h>

Inheritance diagram for CCfits::Column::WrongColumnType:
CCfits::FitsException

Public Member Functions

 WrongColumnType (const String &diag, bool silent=true)
 Exception ctor, prefixes the string "FitsError: Attempt to return scalar data from vector column, or vice versa - Column: " before the 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

Exception thrown on attempting to access a scalar column as vector data.

This exception will be thrown if the user tries to call a read/write operation with a signature appropriate for a vector column on a scalar column, or vice versa. For example in the case of write operations, the vector versions require the specification of (a) a number of rows to write over, (b) a vector of lengths to write to each row or (c) a subset specification. The scalar versions only require a number of rows if the input array is a plain C-array, otherwise the range to be written is the size of the input vector.

Constructor & Destructor Documentation

◆ WrongColumnType()

CCfits::Column::WrongColumnType::WrongColumnType ( const String &  diag,
bool  silent = true 
)

Exception ctor, prefixes the string "FitsError: Attempt to return scalar data from vector column, or vice versa - Column: " before the specific message.

Parameters
diagA specific diagnostic message, usually the column name.
silentif true, print message whether FITS::verboseMode is set or not.

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