Go to the documentation of this file.
28 #ifndef CASA_ARRAYERROR_H
29 #define CASA_ARRAYERROR_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Exceptions/Error.h>
34 #include <casacore/casa/Arrays/IPosition.h>
An error thrown by an Slicer member function.
ArrayShapeError(const IPosition &shape1, const IPosition &shape2, const Char *m="ArrayShapeError", Category c=CONFORMANCE)
Define an ArrayShapeError with the two (presumably different) shapes and an optional supplied message...
A Vector of integers, for indexing into Array<T> objects.
~ArrayNDimError() noexcept
IPosition shape() const
The shape of the violated array.
ArrayIteratorError(Category c=BOUNDARY)
Initialize with the message "ArrayIteratorError.
ArrayError(Category c=GENERAL)
Initialize with the message "ArrayError.".
~ArraySlicerError() noexcept
ArrayNDimError(Int dim1, Int dim2, const Char *m="ArrayNDimError", Category c=CONFORMANCE)
Define the two (presumably different) messages and optionally supply a message.
ArraySlicerError(Category c=GENERAL)
Initialize with the message "Slicer error.".
void ndims(Int &dim1, Int &dim2) const
Return the stored dimensions.
~ArrayShapeError() noexcept
void shapes(IPosition &, IPosition &) const
Get back the stored shapes.
Thrown when two arrays have different dimensionality.
ArrayIndexError(Category c=BOUNDARY)
Initialize with the message "ArrayIndexError".
~ArrayIndexError() noexcept
this file contains all the compiler specific defines
const Double c
Fundamental physical constants (SI units):
An error thrown when an index is out of range.
The base class for all Array exception classes.
An error thrown by an ArrayIterator.
String: the storage and methods of handling collections of characters.
An error thrown when two arrays have different shapes.
IPosition index() const
The out-of-bounds index.
Base class for all Casacore library errors.
~ArrayIteratorError() noexcept