UnexpectedEnumValueException Class Reference

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...
 

Detailed Description

Indicates that an unexpected value of an enum was encountered.

Definition at line 13 of file UnexpectedEnumValueException.h.

Constructor & Destructor Documentation

◆ UnexpectedEnumValueException() [1/2]

UnexpectedEnumValueException ( const std::string &  enumName,
int  value 
)

Constructor.

Parameters
enumNamethe name of the enum type
valuethe encountered value (cast to int if needed)

Definition at line 10 of file UnexpectedEnumValueException.cpp.

◆ UnexpectedEnumValueException() [2/2]

UnexpectedEnumValueException ( const std::string &  enumName,
EnumT  value 
)
inline

Constructor.

Parameters
enumNamethe name of the enum type
valuethe encountered value (is cast to int)

Definition at line 30 of file UnexpectedEnumValueException.h.

◆ ~UnexpectedEnumValueException()

virtual ~UnexpectedEnumValueException ( )
overridevirtualdefault

Virtual destructor.

Member Function Documentation

◆ getEnumName()

const std::string & getEnumName ( ) const

Get the name of the enum type.

Definition at line 17 of file UnexpectedEnumValueException.cpp.

◆ getValue()

int getValue ( ) const

Get the encountered enum value.

Definition at line 22 of file UnexpectedEnumValueException.cpp.


The documentation for this class was generated from the following files: