30 #include <ArmarXCore/interface/observers/VariantBase.h>
40 const std::string& infoString =
"")
42 std::stringstream sstream;
45 if (!infoString.empty())
47 sstream <<
"\nInfo: " << infoString;
49 reason = sstream.str();
54 const std::string& infoString =
"")
56 std::stringstream sstream;
57 sstream <<
"Type1: " << typeId1 <<
" Type2: " << typeId2;
58 if (!infoString.empty())
60 sstream <<
"\nInfo: " << infoString;
62 reason = sstream.str();
72 return "armarx::exceptions::user::InvalidTypeException";
81 std::stringstream sstream;
83 if (!infoString.empty())
85 sstream <<
"\nInfo: " << infoString;
87 reason = sstream.str();
92 std::stringstream sstream;
93 sstream <<
"Unsupported Type: " << typeId;
94 if (!infoString.empty())
96 sstream <<
"\nInfo: " << infoString;
98 reason = sstream.str();
108 return "armarx::exceptions::user::UnsupportedTypeException";