Error_Connection
public
Error
Error_Connection
Error_InvalidSerialPort
Error_InvalidTcpServer
Error_InvalidUnixSocket

The generic connection exception.

Error_Connection
Error_Connection(): Error("Connection error."), m_code(-1)

Initializes the Error_Connection object, sets the error code to a default of -1

Error_Connection
Error_Connection(
int code
): Error("Connection error."), m_code(code)

Initializes the Error_Connection object

Parameters
code
int

the exception error code

Error_Connection
Error_Connection(
const std::string &description
): Error(description), m_code(-1)

Initializes the Error_Connection object

Parameters
description
const std::string&

the description to set

Error_Connection
Error_Connection(
const std::string &description,
int code
): Error(description), m_code(code)

Initializes the Error_Connection object

Parameters
description
const std::string&

the description to set

code
int

the exception error code

code
const int code() const throw ()

gets the exception error code (system error codes, or -1 by default)