Changed exception to Unsolved to fit with naming convention

This commit is contained in:
2020-07-19 13:23:57 -04:00
parent 0caa043b59
commit 22871b71e9
33 changed files with 112 additions and 104 deletions

View File

@@ -69,7 +69,7 @@ void Problem24::reset(){
std::string Problem24::getString() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
std::stringstream results;
//Print the results
@@ -81,7 +81,7 @@ std::string Problem24::getString() const{
std::vector<std::string> Problem24::getPermutationsList() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
return permutations;
}
@@ -90,7 +90,7 @@ std::vector<std::string> Problem24::getPermutationsList() const{
std::string Problem24::getPermutation() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
return permutations.at(NEEDED_PERM - 1);
}