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) {}
Could not set or get the attributes for the given serial communication device.
CannotGetSetPortAttributesException(const std::string &port)
Failed to open the serial communication device.
CannotOpenPortException(const std::string &port, const std::string os_msg)
Reading from the serial communication device failed.
DeviceReadException(const std::string &port, const std::string os_msg)
Writing to the serial communication device failed.
DeviceWriteException(const std::string &port, const std::string os_msg)
The Katana returned an error string.
ErrorException(const std::string &error)
Exception(const std::string &message, const int error_number)
const int error_number() const
PortNotOpenException(const std::string &port)
The Katana didn't answer correctly within the given timeout.
ReadNotCompleteException(const std::string &port)
This exception is the base for the WriteNotComplete and ReadNotCompleteException.
ReadWriteNotCompleteException(const std::string &errstr, const int error_number)
Not all bytes could be written to the serial communication device.
WriteNotCompleteException(const std::string &port)