|
|
Indicates that an unexpected value of an enum was encountered. More...
#include <ArmarXCore/core/exceptions/local/UnexpectedEnumValueException.h>
Inheritance diagram for UnexpectedEnumValueException: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 12 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 28 of file UnexpectedEnumValueException.h.
|
overridevirtualdefault |
Virtual destructor.
| const std::string & getEnumName | ( | ) | const |
Get the name of the enum type.
Definition at line 20 of file UnexpectedEnumValueException.cpp.
| int getValue | ( | ) | const |
Get the encountered enum value.
Definition at line 26 of file UnexpectedEnumValueException.cpp.