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

@@ -87,7 +87,7 @@ void Problem29::reset(){
std::string Problem29::getString() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
std::stringstream results;
@@ -100,7 +100,7 @@ std::string Problem29::getString() const{
unsigned int Problem29::getBottomA() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
return BOTTOM_A;
}
@@ -109,7 +109,7 @@ unsigned int Problem29::getBottomA() const{
unsigned int Problem29::getTopA() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
return TOP_A;
}
@@ -118,7 +118,7 @@ unsigned int Problem29::getTopA() const{
unsigned int Problem29::getBottomB() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
return BOTTOM_B;
}
@@ -127,7 +127,7 @@ unsigned int Problem29::getBottomB() const{
unsigned int Problem29::getTopB() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
return TOP_B;
}
@@ -136,7 +136,7 @@ unsigned int Problem29::getTopB() const{
std::vector<mpz_class> Problem29::getUnique() const{
//If the problem hasn't been solved throw an exception
if(!solved){
throw unsolved();
throw Unsolved();
}
return unique;
}