Changeset 882678 for src/Actions/ValueStorage.cpp
- Timestamp:
- Apr 6, 2011, 1:50:42 PM (14 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 336e33
- Parents:
- b94634
- git-author:
- Frederik Heber <heber@…> (04/01/11 22:29:00)
- git-committer:
- Frederik Heber <heber@…> (04/06/11 13:50:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ValueStorage.cpp
rb94634 r882678 68 68 CurrentValueMap.erase(name); 69 69 } else 70 throw IllegalTypeException(__FILE__,__LINE__); 70 throw IllegalTypeException() << ValueStorageOptionName(name) 71 << ValueStoragePairTypeName(std::make_pair( 72 typeid(_T).name(), 73 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 74 ); 71 75 _T = World::getInstance().getAtom(AtomById(atomID)); 72 76 } … … 80 84 CurrentValueMap.erase(name); 81 85 } else 82 throw IllegalTypeException(__FILE__,__LINE__); 86 throw IllegalTypeException() << ValueStorageOptionName(name) 87 << ValueStoragePairTypeName(std::make_pair( 88 typeid(_T).name(), 89 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 90 ); 83 91 _T = World::getInstance().getPeriode()->FindElement(Z); 84 92 } … … 92 100 CurrentValueMap.erase(name); 93 101 } else 94 throw IllegalTypeException(__FILE__,__LINE__); 102 throw IllegalTypeException() << ValueStorageOptionName(name) 103 << ValueStoragePairTypeName(std::make_pair( 104 typeid(_T).name(), 105 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 106 ); 95 107 _T = World::getInstance().getMolecule(MoleculeById(molID)); 96 108 } … … 121 133 CurrentValueMap.erase(name); 122 134 } else 123 throw IllegalTypeException(__FILE__,__LINE__); 135 throw IllegalTypeException() << ValueStorageOptionName(name) 136 << ValueStoragePairTypeName(std::make_pair( 137 typeid(_T).name(), 138 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 139 ); 124 140 } 125 141 … … 134 150 } 135 151 } else 136 throw IllegalTypeException(__FILE__,__LINE__); 152 throw IllegalTypeException() << ValueStorageOptionName(name) 153 << ValueStoragePairTypeName(std::make_pair( 154 typeid(_T).name(), 155 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 156 ); 137 157 } 138 158 … … 147 167 } 148 168 } else 149 throw IllegalTypeException(__FILE__,__LINE__); 169 throw IllegalTypeException() << ValueStorageOptionName(name) 170 << ValueStoragePairTypeName(std::make_pair( 171 typeid(_T).name(), 172 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 173 ); 150 174 } 151 175 … … 159 183 "ValueStorage::queryCurrentValue() - RandomNumberDistribution_Parameters in value map has only no components!"); 160 184 } else 161 throw IllegalTypeException(__FILE__,__LINE__); 185 throw IllegalTypeException() << ValueStorageOptionName(name) 186 << ValueStoragePairTypeName(std::make_pair( 187 typeid(_T).name(), 188 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 189 ); 162 190 } 163 191 … … 186 214 } 187 215 } else 188 throw IllegalTypeException(__FILE__,__LINE__); 216 throw IllegalTypeException() << ValueStorageOptionName(name) 217 << ValueStoragePairTypeName(std::make_pair( 218 typeid(_T).name(), 219 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 220 ); 189 221 } 190 222 … … 212 244 } 213 245 } else 214 throw IllegalTypeException(__FILE__,__LINE__); 246 throw IllegalTypeException() << ValueStorageOptionName(name) 247 << ValueStoragePairTypeName(std::make_pair( 248 typeid(_T).name(), 249 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 250 ); 215 251 } 216 252 … … 239 275 } 240 276 } else 241 throw IllegalTypeException(__FILE__,__LINE__); 277 throw IllegalTypeException() << ValueStorageOptionName(name) 278 << ValueStoragePairTypeName(std::make_pair( 279 typeid(_T).name(), 280 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 281 ); 242 282 } 243 283 … … 255 295 _T = tmp; 256 296 } else 257 throw IllegalTypeException(__FILE__,__LINE__); 297 throw IllegalTypeException() << ValueStorageOptionName(name) 298 << ValueStoragePairTypeName(std::make_pair( 299 typeid(_T).name(), 300 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 301 ); 258 302 } 259 303 … … 265 309 CurrentValueMap[name] = stream.str(); 266 310 } else 267 throw IllegalTypeException(__FILE__,__LINE__); 311 throw IllegalTypeException() << ValueStorageOptionName(name) 312 << ValueStoragePairTypeName(std::make_pair( 313 typeid(_T).name(), 314 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 315 ); 268 316 } 269 317 … … 275 323 CurrentValueMap[name] = stream.str(); 276 324 } else 277 throw IllegalTypeException(__FILE__,__LINE__); 325 throw IllegalTypeException() << ValueStorageOptionName(name) 326 << ValueStoragePairTypeName(std::make_pair( 327 typeid(_T).name(), 328 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 329 ); 278 330 } 279 331 … … 285 337 CurrentValueMap[name] = stream.str(); 286 338 } else 287 throw IllegalTypeException(__FILE__,__LINE__); 339 throw IllegalTypeException() << ValueStorageOptionName(name) 340 << ValueStoragePairTypeName(std::make_pair( 341 typeid(_T).name(), 342 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 343 ); 288 344 } 289 345 … … 301 357 CurrentValueMap[name] = stream.str(); 302 358 } else 303 throw IllegalTypeException(__FILE__,__LINE__); 359 throw IllegalTypeException() << ValueStorageOptionName(name) 360 << ValueStoragePairTypeName(std::make_pair( 361 typeid(_T).name(), 362 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 363 ); 304 364 } 305 365 … … 319 379 CurrentValueMap[name] = stream.str(); 320 380 } else 321 throw IllegalTypeException(__FILE__,__LINE__); 381 throw IllegalTypeException() << ValueStorageOptionName(name) 382 << ValueStoragePairTypeName(std::make_pair( 383 typeid(_T).name(), 384 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 385 ); 322 386 } 323 387 … … 330 394 DoLog(0) && (Log() << Verbose(0) << "ValueStorage::setCurrentValue() for "+toString(name)+" to "+stream.str()+"." << std::endl); 331 395 } else 332 throw IllegalTypeException(__FILE__,__LINE__); 396 throw IllegalTypeException() << ValueStorageOptionName(name) 397 << ValueStoragePairTypeName(std::make_pair( 398 typeid(_T).name(), 399 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 400 ); 333 401 } 334 402 … … 342 410 CurrentValueMap[name] = stream.str(); 343 411 } else 344 throw IllegalTypeException(__FILE__,__LINE__); 412 throw IllegalTypeException() << ValueStorageOptionName(name) 413 << ValueStoragePairTypeName(std::make_pair( 414 typeid(_T).name(), 415 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 416 ); 345 417 } 346 418 … … 354 426 CurrentValueMap[name] = stream.str(); 355 427 } else 356 throw IllegalTypeException(__FILE__,__LINE__); 428 throw IllegalTypeException() << ValueStorageOptionName(name) 429 << ValueStoragePairTypeName(std::make_pair( 430 typeid(_T).name(), 431 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 432 ); 357 433 } 358 434 … … 366 442 CurrentValueMap[name] = stream.str(); 367 443 } else 368 throw IllegalTypeException(__FILE__,__LINE__); 444 throw IllegalTypeException() << ValueStorageOptionName(name) 445 << ValueStoragePairTypeName(std::make_pair( 446 typeid(_T).name(), 447 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 448 ); 369 449 } 370 450 … … 376 456 CurrentValueMap[name] = stream.str(); 377 457 } else 378 throw IllegalTypeException(__FILE__,__LINE__); 458 throw IllegalTypeException() << ValueStorageOptionName(name) 459 << ValueStoragePairTypeName(std::make_pair( 460 typeid(_T).name(), 461 OptionRegistry_instance.getOptionByName(name)->getTypeName().c_str()) 462 ); 379 463 } 380 464
Note:
See TracChangeset
for help on using the changeset viewer.