You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
argument_name_function_body_tail= (" return %s::getArgumentName(i); "%type.supertypes[0]) iflen(type.supertypes) ==1else' throw IfcParse::IfcException("argument out of range"); '
98
+
argument_name_function_body_tail= (" return %s::getArgumentName(i); "%type.supertypes[0]) iflen(type.supertypes) ==1else' throw IfcParse::IfcAttributeOutOfRangeException("Argument index out of range"); '
argument_type_function_body_tail= (" return %s::getArgumentType(i); "%type.supertypes[0]) iflen(type.supertypes) ==1else' throw IfcParse::IfcException("argument out of range"); '
103
+
argument_type_function_body_tail= (" return %s::getArgumentType(i); "%type.supertypes[0]) iflen(type.supertypes) ==1else' throw IfcParse::IfcAttributeOutOfRangeException("Argument index out of range"); '
argument_entity_function_body_tail= (" return %s::getArgumentEntity(i); "%type.supertypes[0]) iflen(type.supertypes) ==1else' throw IfcParse::IfcException("argument out of range"); '
108
+
argument_entity_function_body_tail= (" return %s::getArgumentEntity(i); "%type.supertypes[0]) iflen(type.supertypes) ==1else' throw IfcParse::IfcAttributeOutOfRangeException("Argument index out of range"); '
Copy file name to clipboardExpand all lines: src/ifcexpressparser/templates.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -338,7 +338,7 @@ class %(name)s : public %(superclass)s {
338
338
"""
339
339
340
340
simpletype_impl_comment="// Function implementations for %(name)s"
341
-
simpletype_impl_argument_type="if (i == 0) { return %(attr_type)s; } else { throw IfcParse::IfcException(\"argument out of range\"); }"
341
+
simpletype_impl_argument_type="if (i == 0) { return %(attr_type)s; } else { throw IfcParse::IfcAttributeOutOfRangeException(\"Argument index out of range\"); }"
constchar* IfcUtil::IfcBaseType::getArgumentName(unsignedint i) const { if (i == 0) { return"wrappedValue"; } else { throwIfcParse::IfcException("argument out of range"); } }
74
+
constchar* IfcUtil::IfcBaseType::getArgumentName(unsignedint i) const { if (i == 0) { return"wrappedValue"; } else { throwIfcParse::IfcAttributeOutOfRangeException("Argument index out of range"); } }
0 commit comments