|
Indicates that an unexpected value of an enum was encountered. More...
#include <ArmarXCore/core/exceptions/local/UnexpectedEnumValueException.h>
Public Member Functions | |
const std::string & | getEnumName () const |
Get the name of the enum type. More... | |
int | getValue () const |
Get the encountered enum value. More... | |
template<typename EnumT > | |
UnexpectedEnumValueException (const std::string &enumName, EnumT value) | |
Constructor. More... | |
UnexpectedEnumValueException (const std::string &enumName, int value) | |
Constructor. More... | |
virtual | ~UnexpectedEnumValueException () override=default |
Virtual destructor. More... | |
Indicates that an unexpected value of an enum was encountered.
Definition at line 13 of file UnexpectedEnumValueException.h.
UnexpectedEnumValueException | ( | const std::string & | enumName, |
int | value | ||
) |
Constructor.
enumName | the name of the enum type |
value | the encountered value (cast to int if needed) |
Definition at line 10 of file UnexpectedEnumValueException.cpp.
|
inline |
Constructor.
enumName | the name of the enum type |
value | the encountered value (is cast to int) |
Definition at line 30 of file UnexpectedEnumValueException.h.
|
overridevirtualdefault |
Virtual destructor.
const std::string & getEnumName | ( | ) | const |
Get the name of the enum type.
Definition at line 17 of file UnexpectedEnumValueException.cpp.
int getValue | ( | ) | const |
Get the encountered enum value.
Definition at line 22 of file UnexpectedEnumValueException.cpp.