28 #ifndef CASA_ARRAYERROR_2_H
29 #define CASA_ARRAYERROR_2_H
93 const char *m=
"ArrayIndexError");
143 void ndims(
int &dim1,
int &dim2) const;
162 const char *m=
"ArrayShapeError");
ArrayError(const std::string &m)
Initialize with the supplied message.
ArrayError(const char *m)
Initialize with the supplied message.
ArrayError()
Initialize with the message "ArrayError".
An error thrown when an index is out of range.
ArrayIndexError(const char *m)
Initialize with the supplied message, the index and shape are null.
ArrayIndexError(const IPosition &index, const IPosition &shape, const char *m="ArrayIndexError")
Initialize with a given out-of-bounds index, as well as the shape of the array and a supplied message...
ArrayIndexError()
Initialize with the message "ArrayIndexError".
~ArrayIndexError() noexcept
ArrayIndexError(const std::string &m)
Initialize with the supplied message, the index and shape are null.
An error thrown by an ArrayIterator.
ArrayIteratorError()
Initialize with the message "ArrayIteratorError.
ArrayIteratorError(const char *m)
Initialize with the supplied message.
ArrayIteratorError(const std::string &m)
Initialize with the supplied message.
~ArrayIteratorError() noexcept
Thrown when two arrays have different dimensionality.
ArrayNDimError(int dim1, int dim2, const char *m="ArrayNDimError")
Define the two (presumably different) messages and optionally supply a message.
~ArrayNDimError() noexcept
ArrayNDimError(int dim1, int dim2, const std::string &m)
An error thrown when two arrays have different shapes.
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...
~ArrayShapeError() noexcept
An error thrown by an Slicer member function.
ArraySlicerError()
Initialize with the message "Slicer error.".
ArraySlicerError(const std::string &m)
Initialize with ArraySlicerError plus the supplied message.
~ArraySlicerError() noexcept
this file contains all the compiler specific defines
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape.