mavtables  0.2.1
MAVLink router and firewall.
Public Member Functions | List of all members
PartialSendError Class Reference

#include <PartialSendError.hpp>

Inheritance diagram for PartialSendError:
Inheritance graph
Collaboration diagram for PartialSendError:
Collaboration graph

Public Member Functions

 PartialSendError (unsigned long bytes_sent, unsigned long total_bytes)
 
const char * what () const noexcept
 

Detailed Description

Exception type emitted when an interface fails to send a complete packet.

Definition at line 28 of file PartialSendError.hpp.

Constructor & Destructor Documentation

◆ PartialSendError()

PartialSendError::PartialSendError ( unsigned long  bytes_sent,
unsigned long  total_bytes 
)

Construct a PartialSendError.

Parameters
bytes_sentNumber of bytes that were sent.
total_bytesTotal number of bytes in the packet.

Definition at line 29 of file PartialSendError.cpp.

Member Function Documentation

◆ what()

const char * PartialSendError::what ( ) const
noexcept

Return error message string.

Returns
Error message string containing sent to total bytes ratio.

Definition at line 41 of file PartialSendError.cpp.


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