libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::ModbusException Class Reference

Exception class for the Modbus server. More...

#include <Modbus.h>

Inheritance diagram for BaseLib::ModbusException:
BaseLib::Exception BaseLib::ModbusServerBusyException

Public Member Functions

 ModbusException (const std::string &message)
 
 ModbusException (const std::string &message, uint8_t code, std::vector< char > packet)
 
uint8_t getCode () const
 
std::vector< char > getPacket () const
 
- Public Member Functions inherited from BaseLib::Exception
 Exception (const std::string &message)
 
 ~Exception () override=default
 

Detailed Description

Exception class for the Modbus server.

See also
Modbus

Constructor & Destructor Documentation

§ ModbusException() [1/2]

BaseLib::ModbusException::ModbusException ( const std::string &  message)
inline

§ ModbusException() [2/2]

BaseLib::ModbusException::ModbusException ( const std::string &  message,
uint8_t  code,
std::vector< char >  packet 
)
inline

Member Function Documentation

§ getCode()

uint8_t BaseLib::ModbusException::getCode ( ) const
inline

§ getPacket()

std::vector<char> BaseLib::ModbusException::getPacket ( ) const
inline

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