26#ifndef CASA_ARRAYERROR_2_H
27#define CASA_ARRAYERROR_2_H
91 const char *m=
"ArrayIndexError");
141 void ndims(
int &dim1,
int &dim2) const;
160 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".
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...
IPosition index() const
The out-of-bounds index.
ArrayIndexError()
Initialize with the message "ArrayIndexError".
IPosition shape() const
The shape of the violated array.
~ArrayIndexError() noexcept
ArrayIndexError(const std::string &m)
Initialize with the supplied message, the index and shape are null.
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
ArrayNDimError(int dim1, int dim2, const char *m="ArrayNDimError")
Define the two (presumably different) messages and optionally supply a message.
void ndims(int &dim1, int &dim2) const
Return the stored dimensions.
~ArrayNDimError() noexcept
ArrayNDimError(int dim1, int dim2, const std::string &m)
void shapes(IPosition &, IPosition &) const
Get back the stored 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
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