|
| | ModbusException (const std::vector< uint8_t > &inputData, bool CRC=false) noexcept |
| | Constructs Exception from raw data.
|
| |
|
| ModbusException (utils::MBErrorCode errorCode, uint8_t slaveId=0xFF, utils::MBFunctionCode functionCode=utils::Undefined) noexcept |
| | Constructs Exception based on error code, function code and slaveId.
|
| |
|
uint8_t | slaveID () const noexcept |
| |
|
bool | isSlaveValid () const noexcept |
| | Checks if SlaveID is specified.
|
| |
|
void | setSlaveID (uint8_t slaveId) noexcept |
| | Sets SlaveID.
|
| |
|
utils::MBErrorCode | getErrorCode () const noexcept |
| | Returns detected error code.
|
| |
| const char * | what () const noexcept override |
| |
|
std::string | toString () const noexcept |
| | Returns string representation of object.
|
| |
|
std::vector< uint8_t > | toRaw () const noexcept |
| | Converts object to modbus byte representation.
|
| |
|
utils::MBFunctionCode | functionCode () const noexcept |
| |
|
void | setFunctionCode (utils::MBFunctionCode functionCode) noexcept |
| |
Thic class represent Modbus exception and is derived form std::exception. It is just a wrapper around standard error codes and some custom codes.