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:
@@ -78,7 +78,7 @@ void Problem1::reset(){
|
||||
std::string Problem1::getString() const{
|
||||
//If the problem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
//Create a string with the results and return it
|
||||
std::stringstream results;
|
||||
@@ -89,7 +89,7 @@ std::string Problem1::getString() const{
|
||||
uint64_t Problem1::getSum() const{
|
||||
//If the prblem hasn't been solved throw an exception
|
||||
if(!solved){
|
||||
throw unsolved();
|
||||
throw Unsolved();
|
||||
}
|
||||
return fullSum;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user