ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/src/io/Globals.cpp
(Generate patch)

Comparing trunk/OOPSE-3.0/src/io/Globals.cpp (file contents):
Revision 2543 by tim, Fri Dec 16 18:26:41 2005 UTC vs.
Revision 2544 by tim, Wed Jan 11 19:01:20 2006 UTC

# Line 181 | Line 181 | void Globals::validate() {
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   }
# Line 205 | Line 207 | bool Globals::addMoleculeStamp(MoleculeStamp* molStamp
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines