mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
28 lines
459 B
C++
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
|