kstars
#include <SpatialException.h>

Public Member Functions | |
| SpatialBoundsError (const char *what=0) throw () | |
| SpatialBoundsError (const char *context, const char *array, int32 limit=-1, int32 index=-1) throw () | |
| SpatialBoundsError (const SpatialBoundsError &) throw () | |
Public Member Functions inherited from SpatialException | |
| SpatialException (const char *what=0, int defIndex=1) throw () | |
| SpatialException (const char *context, const char *because, 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 126 of file SpatialException.h.
Constructor & Destructor Documentation
| SpatialBoundsError::SpatialBoundsError | ( | const char * | what = 0 | ) | |
| throw | ( | ||||
| ) | |||||
Default and explicit constructors.
Definition at line 199 of file SpatialException.cpp.
| 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 204 of file SpatialException.cpp.
| SpatialBoundsError::SpatialBoundsError | ( | const SpatialBoundsError & | oldX | ) | |
| throw | ( | ||||
| ) | |||||
Copy constructor.
Definition at line 227 of file SpatialException.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from