Search for usage in LXR

#include <SpatialException.h>

Inheritance diagram for SpatialException:

Public Member Functions

 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 ()
SpatialExceptionoperator= (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() [1/3]

SpatialException::SpatialException ( const char * what = nullptr,
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 44 of file SpatialException.cpp.

◆ SpatialException() [2/3]

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 65 of file SpatialException.cpp.

◆ SpatialException() [3/3]

SpatialException::SpatialException ( const SpatialException & oldX)
throw ( )

Copy constructor.

Definition at line 81 of file SpatialException.cpp.

◆ ~SpatialException()

SpatialException::~SpatialException ( )
throw ( )


Definition at line 39 of file SpatialException.cpp.

Member Function Documentation

◆ clear()

void SpatialException::clear ( )

deallocate string

Definition at line 136 of file SpatialException.cpp.

◆ operator=()

SpatialException & SpatialException::operator= ( const SpatialException & oldX)
throw ( )

Assignment operator.

Definition at line 97 of file SpatialException.cpp.

◆ slen()

int SpatialException::slen ( const char * str) const

return string length also for null strings

Definition at line 129 of file SpatialException.cpp.

◆ what()

const char * SpatialException::what ( ) const
throw ( )

Returns the message as set during construction.

Definition at line 117 of file SpatialException.cpp.

Member Data Documentation

◆ defaultstr

const char * SpatialException::defaultstr
Initial value:
= { "SDSS Science Archive",
"generic exception",
"unimplemented functionality",
"failed operation",
"array bounds violation",
"interface violation" }

default error string

Definition at line 25 of file SpatialException.h.

◆ str_

char* SpatialException::str_

error string to assemble

Definition at line 73 of file SpatialException.h.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:48:28 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.