From 5c71ae6f895fc7444cb162da7d325e41b5d31c0a Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 31 Mar 2012 09:54:15 +0000 Subject: [PATCH] Catch one more IfcException --- src/ifcparse/IfcParse.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ifcparse/IfcParse.cpp b/src/ifcparse/IfcParse.cpp index 6f4dba9cfa..fbdc6e381a 100644 --- a/src/ifcparse/IfcParse.cpp +++ b/src/ifcparse/IfcParse.cpp @@ -326,7 +326,11 @@ ArgumentList::ArgumentList(Tokens* t, std::vector& ids) { if ( TokenFunc::isIdentifier(next) ) ids.push_back(TokenFunc::asInt(next)); if ( TokenFunc::isDatatype(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(); } else { Push ( new TokenArgument(next) );