28 #ifndef CASA_ARRAYERROR_2_H
29 #define CASA_ARRAYERROR_2_H
93 const char *m=
"ArrayIndexError");
139 ArrayNDimError(
int dim1,
int dim2,
const char *m=
"ArrayNDimError");
143 void ndims(
int &dim1,
int &dim2)
const;
162 const char *m=
"ArrayShapeError");
A Vector of integers, for indexing into Array<T> objects.
~ArrayIteratorError() noexcept
~ArrayNDimError() noexcept
The base class for all Array exception classes.
ArrayIndexError()
Initialize with the message "ArrayIndexError".
ArraySlicerError()
Initialize with the message "Slicer error.".
IPosition index() const
The out-of-bounds index.
void shapes(IPosition &, IPosition &) const
Get back the stored shapes.
ArrayError()
Initialize with the message "ArrayError".
ArrayNDimError(int dim1, int dim2, const char *m="ArrayNDimError")
Define the two (presumably different) messages and optionally supply a message.
ArrayIteratorError()
Initialize with the message "ArrayIteratorError.
IPosition shape() const
The shape of the violated array.
~ArraySlicerError() noexcept
~ArrayIndexError() noexcept
An error thrown by an ArrayIterator.
An error thrown when an index is out of range.
An error thrown when two arrays have different shapes.
~ArrayShapeError() noexcept
void ndims(int &dim1, int &dim2) const
Return the stored dimensions.
An error thrown by an Slicer member function.
Thrown when two arrays have different dimensionality.
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...