mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Changed exception to Unsolved to fit with naming convention
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user