UnexpectedEnumValueException.h File Reference

Classes

class  UnexpectedEnumValueException
 Indicates that an unexpected value of an enum was encountered. More...
 

Namespaces

namespace  armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 
namespace  armarx::exceptions
 
namespace  armarx::exceptions::local
 

Macros

#define ARMARX_UNEXPECTED_ENUM_VALUE(EnumType, value)
 Throw an UnexpectedEnumValueException.
 

Macro Definition Documentation

◆ ARMARX_UNEXPECTED_ENUM_VALUE

#define ARMARX_UNEXPECTED_ENUM_VALUE ( EnumType,
value )
Value:
throw ::armarx::exceptions::local::UnexpectedEnumValueException(#EnumType, (value));

Throw an UnexpectedEnumValueException.

Pass EnumType as symbol (it will be converted to a string).