kstars
#include <SpatialException.h>

Public Member Functions | |
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 () |
Static Public Attributes | |
static const char * | defaultstr [] |
Protected Attributes | |
char * | str_ |
Detailed Description
HTM SpatialIndex Exception base class This is the base class for all Science Archive exceptions.
It may be used as a generic exception, but programmers are encouraged to use the more specific derived classes. Note that all Spatial exceptions are also Standard Library exceptions by inheritance.
Definition at line 28 of file SpatialException.h.
Constructor & Destructor Documentation
SpatialException::SpatialException | ( | const char * | what = 0 , |
int | defIndex = 1 |
||
) | |||
throw | ( | ||
) |
Default and explicit constructor.
The default constructor supplies a generic message indicating the exception type. The explicit constructor sets the message to a copy of the provided string. This behavior is shared by all derived classes.
Definition at line 46 of file SpatialException.cpp.
SpatialException::SpatialException | ( | const char * | context, |
const char * | because, | ||
int | defIndex = 1 |
||
) | |||
throw | ( | ||
) |
Standard constructor.
The message is assembled from copies of the two component strings. The first indicates where in the program the exception was thrown, and the second indicates why. The null pointer is used to select standard components according to the type of the exception. This behavior is shared by all derived classes.
Definition at line 62 of file SpatialException.cpp.
SpatialException::SpatialException | ( | const SpatialException & | oldX | ) | |
throw | ( | ||||
) |
Copy constructor.
Definition at line 77 of file SpatialException.cpp.
|
virtual |
Destructor.
Definition at line 42 of file SpatialException.cpp.
Member Function Documentation
void SpatialException::clear | ( | ) |
deallocate string
Definition at line 122 of file SpatialException.cpp.
SpatialException & SpatialException::operator= | ( | const SpatialException & | oldX | ) | |
throw | ( | ||||
) |
Assignment operator.
Definition at line 90 of file SpatialException.cpp.
int SpatialException::slen | ( | const char * | str | ) | const |
return string length also for null strings
Definition at line 116 of file SpatialException.cpp.
|
virtual |
Returns the message as set during construction.
Definition at line 106 of file SpatialException.cpp.
Member Data Documentation
|
static |
default error string
Definition at line 69 of file SpatialException.h.
|
protected |
error string to assemble
Definition at line 73 of file SpatialException.h.
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.