mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
Catch one more IfcException
This commit is contained in:
@@ -326,7 +326,11 @@ ArgumentList::ArgumentList(Tokens* t, std::vector<unsigned int>& ids) {
|
|||||||
if ( TokenFunc::isIdentifier(next) ) ids.push_back(TokenFunc::asInt(next));
|
if ( TokenFunc::isIdentifier(next) ) ids.push_back(TokenFunc::asInt(next));
|
||||||
if ( TokenFunc::isDatatype(next) ) {
|
if ( TokenFunc::isDatatype(next) ) {
|
||||||
t->Next();
|
t->Next();
|
||||||
Push ( new EntityArgument(Ifc2x3::Type::FromString(TokenFunc::asString(next)),t->Next()) );
|
try {
|
||||||
|
Push ( new EntityArgument(Ifc2x3::Type::FromString(TokenFunc::asString(next)),t->Next()) );
|
||||||
|
} catch ( IfcException& e ) {
|
||||||
|
Ifc::LogMessage("Error",e.what());
|
||||||
|
}
|
||||||
t->Next();
|
t->Next();
|
||||||
} else {
|
} else {
|
||||||
Push ( new TokenArgument(next) );
|
Push ( new TokenArgument(next) );
|
||||||
|
|||||||
Reference in New Issue
Block a user