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

Special connection exception that indicates a problem with the communication protocol. More...

#include <Exceptions.h>

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

Public Member Functions

 ProtocolException (int errorCode, const std::string &errorText, const std::string &errorSource)
 Constructor. More...
 
- Public Member Functions inherited from david::ConnectionException
 ConnectionException (int errorCode, const std::string &errorText, const std::string &errorSource)
 Constructor. More...
 
- Public Member Functions inherited from david::Exception
 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

Special connection exception that indicates a problem with the communication protocol.

Incompatible implementations or wrong/incomplete implementation is likely. Associated error codes: All below david::PROTOCOL_ERRORS.

Definition at line 81 of file Exceptions.h.

Constructor & Destructor Documentation

david::ProtocolException::ProtocolException ( 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.

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