catch Standard_ConstructionError when serialising xml attributes

This commit is contained in:
Otso Alho
2019-06-20 08:58:35 +03:00
committed by Thomas Krijnen
parent 491dc57098
commit a851a25ddc
+2
View File
@@ -158,6 +158,8 @@ ptree& format_entity_instance(IfcUtil::IfcBaseEntity* instance, ptree& child, pt
value = format_attribute(argument, argument_type, qualified_name);
} catch (const std::exception& e) {
Logger::Error(e);
} catch (const Standard_ConstructionError& e) {
Logger::Error(e.GetMessageString(), instance->entity);
}
if (value) {