00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef SELDON_FILE_ERRORS_HXX
00021
00022 namespace Seldon
00023 {
00024
00025
00027
00029
00030 class Error
00031 {
00032 protected:
00033 string function;
00034 string comment;
00035
00036 public:
00037 Error() throw();
00038 Error(string f) throw();
00039 Error(string f, string c) throw();
00040 virtual ~Error() throw();
00041
00042 virtual void What();
00043
00044 };
00045
00046
00048
00050
00051 class NoMemory: public Error
00052 {
00053 public:
00054 NoMemory(string f) throw();
00055 NoMemory(string f, string c) throw();
00056
00057 virtual void What();
00058 };
00059
00060
00062
00064
00065 class WrongDim: public Error
00066 {
00067 public:
00068 WrongDim(string f) throw();
00069 WrongDim(string f, string c) throw();
00070
00071 virtual void What();
00072 };
00073
00074
00076
00078
00079 class WrongIndex: public Error
00080 {
00081 public:
00082 WrongIndex(string f) throw();
00083 WrongIndex(string f, string c) throw();
00084
00085 virtual void What();
00086 };
00087
00088
00090
00092
00093 class WrongRow: public Error
00094 {
00095 public:
00096 WrongRow(string f) throw();
00097 WrongRow(string f, string c) throw();
00098
00099 virtual void What();
00100 };
00101
00102
00104
00106
00107 class WrongCol: public Error
00108 {
00109 public:
00110 WrongCol(string f) throw();
00111 WrongCol(string f, string c) throw();
00112
00113 virtual void What();
00114 };
00115
00116
00118
00120
00121 class IOError: public Error
00122 {
00123 public:
00124 IOError(string f) throw();
00125 IOError(string f, string c) throw();
00126
00127 virtual void What();
00128 };
00129
00130
00131 }
00132
00133 #define SELDON_FILE_ERRORS_HXX
00134 #endif