DAVID4 SDK  1.8.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
david::Exception Class Reference

Base exception class. All other DAVID exceptions are derived from this class. More...

#include <Exceptions.h>

Inheritance diagram for david::Exception:
david::ConnectionException david::FunctionException david::ProtocolException

Public Member Functions

 Exception (int errorCode, const std::string &errorText, const std::string &errorSource)
 Constructor. More...
 
virtual ~Exception () throw ()
 Destructor.
 
int GetErrorCode () const
 Returns the error code. More...
 
std::string GetErrorText () const
 Returns a description for the error. More...
 
std::string GetErrorSource () const
 Returns information about the error source. More...
 
void PrintError ()
 Prints error information to error stream.
 

Detailed Description

Base exception class. All other DAVID exceptions are derived from this class.

Examples:
SimpleMeshComparison.cpp, SimpleShapeFusion.cpp, SimpleStructuredLightScanner.cpp, SimpleTurntable.cpp, and TimedScans.cpp.

Definition at line 23 of file Exceptions.h.

Constructor & Destructor Documentation

david::Exception::Exception ( int  errorCode,
const std::string &  errorText,
const std::string &  errorSource 
)

Constructor.

Parameters
[in]errorCodeError code.
[in]errorTextTextual description of the error.
[in]errorSourceSource of the error.

Member Function Documentation

int david::Exception::GetErrorCode ( ) const

Returns the error code.

Returns
Error code (see david::ErrorCode).
std::string david::Exception::GetErrorSource ( ) const

Returns information about the error source.

Returns
Error source.
std::string david::Exception::GetErrorText ( ) const

Returns a description for the error.

Returns
Error text.

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