HTM SpatialIndex Class Reference

class SpatialException

HTM SpatialIndex Exception base class This is the base class for all Science Archive exceptions

Inheritance:


Public Fields

static char* defaultstr []
default error string

Public Methods

SpatialException ( const char *what = 0, int defIndex = 1 ) throw()
Default and explicit constructor
SpatialException ( const char *context, const char *because, int defIndex = 1) throw()
Standard constructor
SpatialException ( const SpatialException& ) throw()
Copy constructor.
SpatialException& operator= ( const SpatialException& ) throw()
Assignment operator.
virtual ~SpatialException () throw()
Destructor.
virtual const char* what () const throw()
Returns the message as set during construction.
int slen (const char *) const
return string length also for null strings
void clear ()
deallocate string

Protected Fields

char* str_
error string to assemble

Documentation

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.
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.

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.

SpatialException( const SpatialException& ) throw()
Copy constructor.

SpatialException& operator=( const SpatialException& ) throw()
Assignment operator.

virtual ~SpatialException() throw()
Destructor.

virtual const char* what() const throw()
Returns the message as set during construction.

int slen(const char *) const
return string length also for null strings

void clear()
deallocate string

static char* defaultstr[]
default error string

char* str_
error string to assemble


Direct child classes:
SpatialUnimplemented
SpatialInterfaceError
SpatialFailure
SpatialBoundsError

alphabetic index hierarchy of classes


© Copyright The Johns Hopkins University 1999, All Rights Reserved.
Peter Z. Kunszt,

generated by doc++