casacore
Public Member Functions | Private Attributes | List of all members
casacore::ArrayNDimError Class Reference

Thrown when two arrays have different dimensionality. More...

#include <ArrayError.h>

Public Member Functions

 ArrayNDimError (int dim1, int dim2, const char *m="ArrayNDimError")
 Define the two (presumably different) messages and optionally supply a message. More...
 
 ArrayNDimError (int dim1, int dim2, const std::string &m)
 
 ~ArrayNDimError () noexcept
 
void ndims (int &dim1, int &dim2) const
 Return the stored dimensions. More...
 
- Public Member Functions inherited from casacore::ArrayConformanceError
 ArrayConformanceError ()
 Initialize the message with "ArrayConformanceError". More...
 
 ArrayConformanceError (const char *m)
 Initialize with a supplied message. More...
 
 ArrayConformanceError (const std::string &m)
 Initialize with a supplied message. More...
 
 ~ArrayConformanceError () noexcept
 
- Public Member Functions inherited from casacore::ArrayError
 ArrayError ()
 Initialize with the message "ArrayError". More...
 
 ArrayError (const char *m)
 Initialize with the supplied message. More...
 
 ArrayError (const std::string &m)
 Initialize with the supplied message. More...
 
 ~ArrayError () noexcept
 

Private Attributes

int r1
 
int r2
 

Detailed Description

Thrown when two arrays have different dimensionality.

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

An ArrayNDimError is derived from ArrayConformanceError. It is thrown when two arrays are non-conformant by virtue of having different dimensionality. It holds within it the two dimensions.

Definition at line 134 of file ArrayError.h.

Constructor & Destructor Documentation

◆ ArrayNDimError() [1/2]

casacore::ArrayNDimError::ArrayNDimError ( int  dim1,
int  dim2,
const char *  m = "ArrayNDimError" 
)

Define the two (presumably different) messages and optionally supply a message.

◆ ArrayNDimError() [2/2]

casacore::ArrayNDimError::ArrayNDimError ( int  dim1,
int  dim2,
const std::string &  m 
)

◆ ~ArrayNDimError()

casacore::ArrayNDimError::~ArrayNDimError ( )
noexcept

Member Function Documentation

◆ ndims()

void casacore::ArrayNDimError::ndims ( int &  dim1,
int &  dim2 
) const

Return the stored dimensions.

NB modifies arguments.

Member Data Documentation

◆ r1

int casacore::ArrayNDimError::r1
private

Definition at line 145 of file ArrayError.h.

◆ r2

int casacore::ArrayNDimError::r2
private

Definition at line 145 of file ArrayError.h.


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