#include <serialport.h>
Public Types | |
enum | EType : int { NoError = 0, IOError = 1, SerialError = 2, PortError = 3 } |
Public Member Functions | |
bool | failed () |
const std::string & | getMessage () |
EType | getType () |
void | clear () |
Public Attributes | |
EType | mType = EType::NoError |
Status associated with this error. More... | |
std::string | mMessage = "" |
Message associated with this error. More... | |
Contains the error message when a serial operation fails.
|
strong |
void clear | ( | ) |
Clears the error message, automatically called by all serial operations.
bool failed | ( | ) |
const std::string& getMessage | ( | ) |
EType getType | ( | ) |
std::string mMessage = "" |
Message associated with this error.
EType mType = EType::NoError |
Status associated with this error.