DAVID4 SDK
1.8.7
|
Base exception class. All other DAVID exceptions are derived from this class. More...
#include <Exceptions.h>
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. | |
Base exception class. All other DAVID exceptions are derived from this class.
Definition at line 23 of file Exceptions.h.
david::Exception::Exception | ( | int | errorCode, |
const std::string & | errorText, | ||
const std::string & | errorSource | ||
) |
Constructor.
[in] | errorCode | Error code. |
[in] | errorText | Textual description of the error. |
[in] | errorSource | Source of the error. |
int david::Exception::GetErrorCode | ( | ) | const |
Returns the error code.
std::string david::Exception::GetErrorSource | ( | ) | const |
Returns information about the error source.
std::string david::Exception::GetErrorText | ( | ) | const |
Returns a description for the error.