Visioscan Set SDK Libraries 1.0.14
Visioscan Set SDK Help documentation file for C++ and C++/CLI
 
Loading...
Searching...
No Matches
CommunicationException Class Reference

An Exception used when a communication error is detected. More...

#include <CommunicationException.h>

Inheritance diagram for CommunicationException:

Public Member Functions

 CommunicationException (const char *message)
 Copy constructor.
 
 CommunicationException (int code, const string &message)
 Copy constructor.
 
 CommunicationException (const string &message)
 Copy constructor.
 
virtual ~CommunicationException () noexcept
 Destructor.
 
virtual const char * what () const noexcept
 Overload of message retrie.
 
int GetErrorCode ()
 

Protected Attributes

string _msg
 
int _code = -1
 

Detailed Description

An Exception used when a communication error is detected.

Constructor & Destructor Documentation

◆ CommunicationException() [1/3]

CommunicationException::CommunicationException ( const char *  message)
inlineexplicit

Copy constructor.

Parameters
messageA message pointer to a char

◆ CommunicationException() [2/3]

CommunicationException::CommunicationException ( int  code,
const string &  message 
)
explicit

Copy constructor.

Parameters
codeThe error code
messageA message string

◆ CommunicationException() [3/3]

CommunicationException::CommunicationException ( const string &  message)
inlineexplicit

Copy constructor.

Parameters
messageA message string

◆ ~CommunicationException()

virtual CommunicationException::~CommunicationException ( )
inlinevirtualnoexcept

Destructor.

Returns

Member Function Documentation

◆ GetErrorCode()

int CommunicationException::GetErrorCode ( )

◆ what()

virtual const char * CommunicationException::what ( ) const
inlinevirtualnoexcept

Overload of message retrie.

Returns
A pointer to a char representing the message

Member Data Documentation

◆ _code

int CommunicationException::_code = -1
protected

◆ _msg

string CommunicationException::_msg
protected

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