Files
ProjectEulerCPP/Headers/Unsolved.hpp

28 lines
459 B
C++

//ProjectEuler/ProjectEulerCPP/headers/Unsolved.hpp
//Matthew Ellison
// Created: 08-28-20
//Modified: 08-28-20
//An exception class thrown if you try to access something before it has been solved
#ifndef UNSOLVED_HPP
#define UNSOLVED_HPP
#include <string>
class Unsolved{
private:
std::string message;
public:
Unsolved(){}
Unsolved(std::string message) : message(message){}
std::string getMessage(){
return message;
}
};
#endif //UNSOLVED_HPP