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";
static std::string typeToString(VariantTypeId typeId)
Return the name of the registered type typeId.
std::string ice_id() const override
InvalidTypeException(VariantTypeId typeId1, VariantTypeId typeId2, const std::string &infoString="")
~InvalidTypeException() noexcept override
InvalidTypeException(std::string typeId1, std::string typeId2, const std::string &infoString="")
std::string ice_id() const override
~UnsupportedTypeException() noexcept override
UnsupportedTypeException(const std::string &typeId, const std::string &infoString="")
UnsupportedTypeException(VariantTypeId typeId, const std::string &infoString="")