• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
SpatialException Class Reference

#include <SpatialException.h>

Inheritance diagram for SpatialException:
Inheritance graph
[legend]

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.

SpatialException::~SpatialException ( )
throw (
)
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.

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

Returns the message as set during construction.

Definition at line 106 of file SpatialException.cpp.

Member Data Documentation

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

default error string

Definition at line 69 of file SpatialException.h.

char* SpatialException::str_
protected

error string to assemble

Definition at line 73 of file SpatialException.h.


The documentation for this class was generated from the following files:
  • SpatialException.h
  • SpatialException.cpp
This file is part of the KDE documentation.
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.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal