Skip to content

Commit a851a25

Browse files
otsoaaothms
authored andcommitted
catch Standard_ConstructionError when serialising xml attributes
1 parent 491dc57 commit a851a25

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/ifcconvert/XmlSerializer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ ptree& format_entity_instance(IfcUtil::IfcBaseEntity* instance, ptree& child, pt
158158
value = format_attribute(argument, argument_type, qualified_name);
159159
} catch (const std::exception& e) {
160160
Logger::Error(e);
161+
} catch (const Standard_ConstructionError& e) {
162+
Logger::Error(e.GetMessageString(), instance->entity);
161163
}
162164

163165
if (value) {

0 commit comments

Comments
 (0)