SpatialBoundsError
#include <SpatialException.h>
Public Member Functions | |
SpatialBoundsError (const char *context, const char *array, int32 limit=-1, int32 index=-1) throw () | |
SpatialBoundsError (const char *what=nullptr) throw () | |
SpatialBoundsError (const SpatialBoundsError &) throw () | |
Public Member Functions inherited from SpatialException | |
SpatialException (const char *context, const char *because, int defIndex=1) throw () | |
SpatialException (const char *what=nullptr, int defIndex=1) throw () | |
SpatialException (const SpatialException &) throw () | |
virtual | ~SpatialException () throw () |
void | clear () |
SpatialException & | operator= (const SpatialException &) throw () |
int | slen (const char *) const |
virtual const char * | what () const throw () |
Additional Inherited Members | |
Static Public Attributes inherited from SpatialException | |
static const char * | defaultstr [] |
Protected Attributes inherited from SpatialException | |
char * | str_ |
Detailed Description
SpatialException thrown on violation of array bounds.
This Exception should be thrown on detection of an attempt to access elements beyond the boundaries of an array. A special constructor is provided for assembling the message from the typical components: program context, array name, violated boundary, and violating index.
Definition at line 127 of file SpatialException.h.
Constructor & Destructor Documentation
◆ SpatialBoundsError() [1/3]
SpatialBoundsError::SpatialBoundsError | ( | const char * | what = nullptr | ) | ||
throw | ( | ) |
Default and explicit constructors.
Definition at line 217 of file SpatialException.cpp.
◆ SpatialBoundsError() [2/3]
SpatialBoundsError::SpatialBoundsError | ( | const char * | context, | |||
const char * | array, | |||||
int32 | limit = -1, | |||||
int32 | index = -1 ) | |||||
throw | ( | ) |
Standard constructor.
If limit and index are -1, both are considered unknown. Note that the upper limit of a zero-offset array is not the same as the number of elements.
Definition at line 221 of file SpatialException.cpp.
◆ SpatialBoundsError() [3/3]
SpatialBoundsError::SpatialBoundsError | ( | const SpatialBoundsError & | oldX | ) | ||
throw | ( | ) |
Copy constructor.
Definition at line 249 of file SpatialException.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.