exception.h 226 B

123456789101112
  1. #ifndef __INVALID__
  2. #define __INVALID__
  3. class Invalid{
  4. string r_;
  5. string l_;
  6. public:
  7. Invalid(string reason,string line):r_(reason), l_(line){}
  8. string reason() const{return r_;}
  9. string line() const{ return l_;}
  10. };
  11. #endif