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

@@ -327,7 +327,7 @@ void Problem67::reset(){
std::string Problem67::getString() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
std::stringstream results;
@@ -339,7 +339,7 @@ std::string Problem67::getString() const{
std::string Problem67::getPyramid() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
std::stringstream results;
@@ -356,7 +356,7 @@ std::string Problem67::getPyramid() const{
std::string Problem67::getTrail(){
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
std::stringstream results;
@@ -413,7 +413,7 @@ std::string Problem67::getTrail(){
int Problem67::getTotal() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
return actualTotal;
}