00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef EXCEPTIONS_H
00024 #define EXCEPTIONS_H
00025
00026 #include <iostream>
00027 #include <string>
00028 #include <exception>
00029 using std::string;
00030 using std::exception;
00031
00037 class u2d_IO_Exception : public exception {
00038 public:
00039 virtual const char* what() const throw ();
00040 u2d_IO_Exception(string reason);
00041 ~u2d_IO_Exception() throw();
00042 private:
00043 string my_reason;
00044 };
00045
00051 class u2d_Parse_Error_Exception : public exception
00052 {
00053 public:
00054 virtual const char* what() const throw ();
00055 u2d_Parse_Error_Exception(string reason);
00056 ~ u2d_Parse_Error_Exception() throw();
00057 private:
00058 string my_reason;
00059 };
00060
00061 #endif //exceptions_h