Base class for all indexing errors. More...
#include <Error.h>
Public Member Functions | |
IndexError (const Char *str, Category c=BOUNDARY) | |
Creates an GeneralIndexError and initializes the error message from the parameter. | |
IndexError (const String &str, Category c=BOUNDARY) | |
IndexError (Category c=BOUNDARY) | |
~IndexError () throw () | |
Destructor which does nothing. |
Base class for all indexing errors.
Public interface
This class is the base class of all IndexError
s. It is defined to allow the user to catch any of the many kinds of IndexErrors which may be thrown. It can also be thrown itself if returning the illegal index value is unimportant.
throw(IndexError("ANY STRING"));
Definition at line 281 of file Error.h.
casacore::IndexError::IndexError | ( | Category | c = BOUNDARY |
) | [inline] |
casacore::IndexError::~IndexError | ( | ) | throw () |
Destructor which does nothing.