Exception.h 264 B

123456789101112131415161718192021
  1. #ifndef EXCEPTION_H
  2. #define EXCEPTION_H
  3. #include <string>
  4. using namespace std;
  5. class Exception
  6. {
  7. public:
  8. Exception(string message);
  9. Exception(string message, int line);
  10. void print() const;
  11. private:
  12. string message;
  13. int line;
  14. };
  15. #endif