19 #include <boost/lexical_cast.hpp> 30 ros::Exception(
"Attempted null pointer operation") {
34 ros::
Exception(
"Attempted execution of an invalid operation: "+what) {
38 ros::
Exception(
"Attempted use of an invalid data type") {
42 ros::
Exception(
"Attempted modification of an immutable data type") {
47 ros::
Exception(
"Data type ["+identifier+
"] does not exist") {
51 const std::string& identifier) :
53 "] is used ambiguously") {
57 expectedDataType,
const std::string& providedDataType) :
59 "] mismatches expected data type ["+expectedDataType+
"]") {
63 const std::string& name) :
64 ros::
Exception(
"Member name ["+name+
"] is used ambiguously") {
73 ros::
Exception(
"Member with name ["+name+
"] does not exist") {
77 ros::
Exception(
"Attempted use of an invalid message member") {
81 expectedMD5Sum,
const std::string& providedMD5Sum) :
83 "] mismatches expected MD5 sum ["+expectedMD5Sum+
"]") {
88 ros::
Exception(
"Message type ["+invalidMessageType+
"] is invalid") {
92 expectedMessageType,
const std::string& providedMessageType) :
93 ros::
Exception(
"Provided message type ["+providedMessageType+
94 "] mismatches expected message type ["+expectedMessageType+
"]") {
98 dataType,
const std::string& line,
const std::string& what) :
99 ros::
Exception(
"Error parsing the definition for ["+dataType+
"]: "+
113 ros::
Exception(
"Attempted use of an invalid serializer") {
Header file defining exceptions for the variant topic tools.
Exception(const std::string &what)