13 #ifndef _CDLCOMEXCEPTIONS_H_ 14 #define _CDLCOMEXCEPTIONS_H_ 50 Exception(
"Cannot open port '" + port +
"': " + os_msg, -10) {}
59 Exception(
"Cannot get/set attributes on '" + port +
"'", -11) {}
68 Exception(
"Port '" + port +
"' not open", -12) {}
78 Exception(
"Read failure on port '" + port +
"': " + os_msg, -13) {}
88 Exception(
"Write failure on port '" + port +
"': " + os_msg, -14) {}
DeviceWriteException(const std::string &port, const std::string os_msg)
PortNotOpenException(const std::string &port)
Could not set or get the attributes for the given serial communication device.
Exception(const std::string &message, const int error_number)
Failed to open the serial communication device.
Not all bytes could be written to the serial communication device.
Writing to the serial communication device failed.
ReadWriteNotCompleteException(const std::string &errstr, const int error_number)
ErrorException(const std::string &error)
This exception is the base for the WriteNotComplete and ReadNotCompleteException. ...
WriteNotCompleteException(const std::string &port)
Reading from the serial communication device failed.
CannotGetSetPortAttributesException(const std::string &port)
DeviceReadException(const std::string &port, const std::string os_msg)
ReadNotCompleteException(const std::string &port)
const int error_number() const
The Katana returned an error string.
CannotOpenPortException(const std::string &port, const std::string os_msg)
The Katana didn't answer correctly within the given timeout.