use eoExceptions everywhere
This commit is contained in:
parent
75ac37b02a
commit
eba2e14950
127 changed files with 524 additions and 418 deletions
|
|
@ -89,7 +89,7 @@ class moeoHCMoveLoopExpl:public moMoveLoopExpl < M >
|
|||
|
||||
if( _old_solution.invalid() )
|
||||
{
|
||||
throw std::runtime_error("[moHCMoveLoopExpl.h]: The current solution has not been evaluated.");
|
||||
throw eoInvalidFitnessError("[moHCMoveLoopExpl.h]: The current solution has not been evaluated.");
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ class moeoTSMoveLoopExpl:public moMoveLoopExpl < M >
|
|||
|
||||
if( _old_solution.invalidFitness() || _old_solution.invalid() )
|
||||
{
|
||||
throw std::runtime_error("[moTSMoveLoopExpl.h]: The current solution has not been evaluated.");
|
||||
throw eoInvalidFitnessError("[moTSMoveLoopExpl.h]: The current solution has not been evaluated.");
|
||||
}
|
||||
|
||||
//At the begining, the new solution is equivalent to the old one.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue