casacore
|
An error thrown when two arrays have different shapes. More...
#include <ArrayError.h>
Public Member Functions | |
ArrayShapeError (const IPosition &shape1, const IPosition &shape2, const char *m="ArrayShapeError") | |
Define an ArrayShapeError with the two (presumably different) shapes and an optional supplied message. More... | |
~ArrayShapeError () noexcept | |
void | shapes (IPosition &, IPosition &) const |
Get back the stored shapes. 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 | |
IPosition | sh1 |
IPosition | sh2 |
An error thrown when two arrays have different shapes.
An ArrayShapeError is derived from ArrayConformanceError. It is thrown when two arrays are non-conformant by virtue of having different shapes. It holds within it the two different two shapes.
Definition at line 156 of file ArrayError.h.
casacore::ArrayShapeError::ArrayShapeError | ( | const IPosition & | shape1, |
const IPosition & | shape2, | ||
const char * | m = "ArrayShapeError" |
||
) |
Define an ArrayShapeError with the two (presumably different) shapes and an optional supplied message.
|
noexcept |
Get back the stored shapes.
NB modifies arguments.
|
private |
Definition at line 167 of file ArrayError.h.
|
private |
Definition at line 167 of file ArrayError.h.