[commit] r1595 - trunk/Paradigms/MetaGME/MetaInterpreter/Rep
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Tue Oct 11 10:10:13 CDT 2011
Author: ksmyth
Date: Tue Oct 11 10:10:13 2011
New Revision: 1595
Log:
GME-355: treat non-model inheriting from model as fatal instead of crashing later
Modified:
trunk/Paradigms/MetaGME/MetaInterpreter/Rep/ModelRep.cpp
Modified: trunk/Paradigms/MetaGME/MetaInterpreter/Rep/ModelRep.cpp
==============================================================================
--- trunk/Paradigms/MetaGME/MetaInterpreter/Rep/ModelRep.cpp Tue Oct 11 10:10:00 2011 (r1594)
+++ trunk/Paradigms/MetaGME/MetaInterpreter/Rep/ModelRep.cpp Tue Oct 11 10:10:13 2011 (r1595)
@@ -260,7 +260,7 @@
for( ; model_it != model_descendants.rend(); ++model_it)
{
if ( (*model_it)->getMyKind() != Any::MODEL)
- global_vars.err << MSG_ERROR << "Error: nonmodel kind " << (*model_it)->getPtr() << " as model descendant\n";
+ throw std::string("Error: nonmodel kind ") + (*model_it)->getPtr()->getName() + " has model descendant " + this->getName();
ModelRep * mod_desc_ptr = dynamic_cast<ModelRep*>(*model_it);
if (!mod_desc_ptr) global_vars.err << MSG_ERROR << "Error: model descendant badly casted to model\n";
More information about the gme-commit
mailing list