mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
catch Standard_ConstructionError when serialising xml attributes
This commit is contained in:
committed by
Thomas Krijnen
parent
491dc57098
commit
a851a25ddc
@@ -158,6 +158,8 @@ ptree& format_entity_instance(IfcUtil::IfcBaseEntity* instance, ptree& child, pt
|
|||||||
value = format_attribute(argument, argument_type, qualified_name);
|
value = format_attribute(argument, argument_type, qualified_name);
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
Logger::Error(e);
|
Logger::Error(e);
|
||||||
|
} catch (const Standard_ConstructionError& e) {
|
||||||
|
Logger::Error(e.GetMessageString(), instance->entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user