casacore
|
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 |
Thrown when two arrays have different dimensionality.
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.
casacore::ArrayNDimError::ArrayNDimError | ( | int | dim1, |
int | dim2, | ||
const char * | m = "ArrayNDimError" |
||
) |
Define the two (presumably different) messages and optionally supply a message.
casacore::ArrayNDimError::ArrayNDimError | ( | int | dim1, |
int | dim2, | ||
const std::string & | m | ||
) |
|
noexcept |
void casacore::ArrayNDimError::ndims | ( | int & | dim1, |
int & | dim2 | ||
) | const |
Return the stored dimensions.
NB modifies arguments.
|
private |
Definition at line 145 of file ArrayError.h.
|
private |
Definition at line 145 of file ArrayError.h.