37 #ifndef MAVROSFLIGHT_SERIAL_EXCEPTION_H 38 #define MAVROSFLIGHT_SERIAL_EXCEPTION_H 44 #include <boost/system/system_error.hpp> 62 init(description.c_str());
74 virtual const char*
what()
const throw()
82 void init(
const char *
const description)
84 std::ostringstream ss;
85 ss <<
"Serial Error: " << description;
92 #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)