37 #ifndef MAVROSFLIGHT_SERIAL_EXCEPTION_H 38 #define MAVROSFLIGHT_SERIAL_EXCEPTION_H 44 #include <boost/system/system_error.hpp> 64 virtual const char *
what()
const throw() {
return what_.c_str(); }
69 void init(
const char *
const description)
71 std::ostringstream ss;
72 ss <<
"Serial Error: " << description;
79 #endif // MAVROSFLIGHT_SERIAL_EXCEPTION_H virtual const char * what() const
Describes an exception encountered while using the boost serial libraries.
SerialException(const char *const description)
SerialException(const SerialException &other)
SerialException(const boost::system::system_error &err)
SerialException(const std::string &description)
void init(const char *const description)