mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 12:12:15 +00:00
Introduce specific exception for out of range attribute indexing
This commit is contained in:
@@ -82,7 +82,7 @@ namespace IfcUtil {
|
||||
}
|
||||
const IfcArgumentDescriptor& get_argument(unsigned i) const {
|
||||
if (i < arguments.size()) return arguments[i];
|
||||
else throw IfcParse::IfcException("Argument out of range");
|
||||
else throw IfcParse::IfcAttributeOutOfRangeException("Argument index out of range");
|
||||
}
|
||||
public:
|
||||
IfcEntityDescriptor(IfcSchema::Type::Enum type, IfcEntityDescriptor* parent)
|
||||
|
||||
Reference in New Issue
Block a user