181 |
|
|
182 |
|
for(std::vector<Component*>::iterator i = components_.begin(); i != components_.end(); ++i) { |
183 |
|
if (!(*i)->findMoleculeStamp(moleculeStamps_)) { |
184 |
< |
std::cout << "Globals Error: can not find molecule stamp for component" << std::endl; |
184 |
> |
std::ostringstream oss; |
185 |
> |
oss << "Globals Error: can not find molecule stamp for component " << (*i)->getType() << std::endl; |
186 |
> |
throw OOPSEException(oss.str()); |
187 |
|
} |
188 |
|
} |
189 |
|
} |
207 |
|
moleculeStamps_.insert(std::map<std::string, MoleculeStamp*>::value_type(molStampName, molStamp)); |
208 |
|
ret = true; |
209 |
|
} else { |
210 |
< |
std::cout << "Globals Error: Molecule Stamp " << molStamp->getName() << "appears multiple times\n"; |
210 |
> |
std::ostringstream oss; |
211 |
> |
oss << "Globals Error: Molecule Stamp " << molStamp->getName() << "appears multiple times\n"; |
212 |
> |
throw OOPSEException(oss.str()); |
213 |
|
} |
214 |
|
return ret; |
215 |
|
} |