exception.h 264 B

1234567891011121314
  1. #ifndef __INVALID__
  2. #define __INVALID__
  3. #include <cctype>
  4. using namespace std;
  5. class Invalid{
  6. string r_;
  7. string l_;
  8. public:
  9. Invalid(string reason,string line):r_(reason), l_(line){}
  10. string reason()const{return r_;}
  11. string line() const{ return l_;}
  12. };
  13. #endif