27 template <
typename EnumT>
58#define ARMARX_UNEXPECTED_ENUM_VALUE(EnumType, value) \
59 throw ::armarx::exceptions::local::UnexpectedEnumValueException(#EnumType, (value));
const std::string & getEnumName() const
Get the name of the enum type.
UnexpectedEnumValueException(const std::string &enumName, int value)
Constructor.
UnexpectedEnumValueException(const std::string &enumName, EnumT value)
Constructor.
int getValue() const
Get the encountered enum value.
virtual ~UnexpectedEnumValueException() override=default
Virtual destructor.