GeoTessCPP  2.6.1
Software to facilitate storage and retrieval of 3D information about the Earth.
All Classes Namespaces Files Functions Variables Typedefs Friends Macros
geotess::GeoTessException Class Reference

An exception class for all GeoTess objects. More...

#include <GeoTessException.h>

Public Member Functions

 GeoTessException (std::string message, int code)
 
 GeoTessException (ostringstream &os, const string &file, int line, int code)
 
 GeoTessException (const string &msg, const string &file, int line, int code)
 
virtual ~GeoTessException ()
 

Static Public Member Functions

static void appendInfo (ostringstream &os, const string &file, int line)
 
static void appendInfo (string &msg, const string &file, int line)
 

Public Attributes

string emessage
 
int ecode
 

Detailed Description

An exception class for all GeoTess objects.

An exception class for all GeoTess objects.

Author
Sandy Ballard

Definition at line 65 of file GeoTessException.h.

Constructor & Destructor Documentation

◆ GeoTessException() [1/3]

geotess::GeoTessException::GeoTessException ( std::string  message,
int  code 
)
inline

Parameterized constructor specifying the error message to be displayed.

Definition at line 82 of file GeoTessException.h.

◆ GeoTessException() [2/3]

geotess::GeoTessException::GeoTessException ( ostringstream &  os,
const string &  file,
int  line,
int  code 
)
inline

Standard Constructor taking a partially defined string stream, which contains the basic error message, and appending version, file, and line number (of error) to the stream before assigning its entire contents to the message of this exception. The error code is also assigned.

Definition at line 93 of file GeoTessException.h.

◆ GeoTessException() [3/3]

geotess::GeoTessException::GeoTessException ( const string &  msg,
const string &  file,
int  line,
int  code 
)
inline

Standard Constructor taking a partially defined string stream, which contains the basic error message, and appending version, file, and line number (of error) to the stream before assigning its entire contents to the message of this exception. The error code is also assigned.

Definition at line 108 of file GeoTessException.h.

◆ ~GeoTessException()

virtual geotess::GeoTessException::~GeoTessException ( )
inlinevirtual

Destructor.

Definition at line 119 of file GeoTessException.h.

Member Function Documentation

◆ appendInfo() [1/2]

static void geotess::GeoTessException::appendInfo ( ostringstream &  os,
const string &  file,
int  line 
)
inlinestatic

Appends version, file, and line number information to the input string stream.

Definition at line 126 of file GeoTessException.h.

◆ appendInfo() [2/2]

static void geotess::GeoTessException::appendInfo ( string &  msg,
const string &  file,
int  line 
)
inlinestatic

Appends version, file, and line number information to the input string stream.

Definition at line 135 of file GeoTessException.h.

Member Data Documentation

◆ ecode

int geotess::GeoTessException::ecode

Public error code set to one of the error constantants defined in this file.

Definition at line 77 of file GeoTessException.h.

◆ emessage

string geotess::GeoTessException::emessage

Definition at line 72 of file GeoTessException.h.


The documentation for this class was generated from the following file: