33 getSourceOfMessage(dnginfo.
baseInfo);
34 getSeverityOfError(dnginfo.
baseInfo);
36 dnginfo.
baseMessage = std::string(eoerror_code2string(m_infobasic->properties.code));
38 eOmn_info_extraformat_t extraf =
static_cast<eOmn_info_extraformat_t
>EOMN_INFO_PROPERTIES_FLAGS_get_extraformat(m_infobasic->properties.flags);
41 if(eomn_info_extraformat_verbal == extraf)
43 dnginfo.
extraMessage.append((NULL == m_extra) ? (
"no extra info despite we are in verbal mode") : ((
const char *)m_extra));
52 dnginfo.
param64 = m_infobasic->properties.par64;
53 dnginfo.
param16 = m_infobasic->properties.par16;
54 dnginfo.
errorCode = m_infobasic->properties.code;
59 std::unique_ptr<DefaultParser> parser_ptr;
61 eOerror_category_t category = eoerror_code2category(m_infobasic->properties.code);
64 case eoerror_category_Config: parser_ptr = std::make_unique<ConfigParser>(dnginfo, entityNameProvider);
break;
66 case eoerror_category_MotionControl: parser_ptr = std::make_unique<MotionControlParser>(dnginfo, entityNameProvider);
break;
68 case eoerror_category_HardWare: parser_ptr = std::make_unique<HwErrorParser>(dnginfo, entityNameProvider);
break;
70 case eoerror_category_System: parser_ptr = std::make_unique<SysParser>(dnginfo, entityNameProvider);
break;
72 case eoerror_category_ETHmonitor: parser_ptr = std::make_unique<EthMonitorParser>(dnginfo, entityNameProvider);
break;
74 case eoerror_category_Skin: parser_ptr = std::make_unique<SkinParser>(dnginfo, entityNameProvider);
break;
76 case eoerror_category_InertialSensor: parser_ptr = std::make_unique<InertialSensorParser>(dnginfo, entityNameProvider);
break;
78 case eoerror_category_AnalogSensor: parser_ptr = std::make_unique<AnalogSensorParser>(dnginfo, entityNameProvider);
break;
80 default: parser_ptr = std::make_unique<DefaultParser>(dnginfo, entityNameProvider);
break;
83 parser_ptr->parseInfo();