00001 #ifndef EXCEPTION_H 00002 #define EXCEPTION_H 00003 00004 #include <exception> 00005 #include <string> 00006 #include <assert.h> 00007 using namespace std; 00008 00009 class OptionException: public exception 00010 { 00011 string text; 00012 public: 00013 const char* what() const throw(); 00014 OptionException(string t); 00015 ~OptionException() throw(); 00016 }; 00017 00018 class SytaxException: public exception 00019 { 00020 string text; 00021 public: 00022 const char* what() const throw(); 00023 SytaxException(string t); 00024 ~SytaxException() throw(); 00025 }; 00026 00027 #endif 00028