00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef MS_MSSELECTIONERROR_H
00029 #define MS_MSSELECTIONERROR_H
00030
00031
00032 #include <casa/aips.h>
00033 #include <casa/Exceptions/Error.h>
00034
00035
00036 namespace casa {
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 class MSSelectionError : public AipsError {
00059 public:
00060
00061 MSSelectionError (Category c=GENERAL);
00062
00063 void changeMessage(String& message);
00064 void addMessage(String& message);
00065 void reset() {message="";};
00066 MSSelectionError (const String& message,Category c=GENERAL);
00067 ~MSSelectionError () throw();
00068 Bool hasMessage;
00069 };
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083 class MSSelectionTimeError : public MSSelectionError {
00084 public:
00085
00086 MSSelectionTimeError (const String& message,Category c=GENERAL);
00087 ~MSSelectionTimeError () throw();
00088 };
00089
00090 class MSSelectionTimeParseError: public MSSelectionTimeError {
00091 public:
00092 MSSelectionTimeParseError (const String& message,Category c=GENERAL);
00093 ~MSSelectionTimeParseError () throw();
00094 };
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109 class MSSelectionAntennaError : public MSSelectionError {
00110 public:
00111
00112 MSSelectionAntennaError (const String& message,Category c=GENERAL);
00113 ~MSSelectionAntennaError () throw();
00114 };
00115
00116
00117
00118
00119 class MSSelectionAntennaParseError: public MSSelectionAntennaError {
00120 public:
00121 MSSelectionAntennaParseError (const String& message,Category c=GENERAL);
00122 ~MSSelectionAntennaParseError () throw();
00123 };
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138 class MSSelectionFieldError : public MSSelectionError {
00139 public:
00140
00141 MSSelectionFieldError (const String& message,Category c=GENERAL);
00142 ~MSSelectionFieldError () throw();
00143 };
00144
00145
00146
00147
00148 class MSSelectionFieldParseError: public MSSelectionFieldError {
00149 public:
00150 MSSelectionFieldParseError (const String& message,Category c=GENERAL);
00151 ~MSSelectionFieldParseError () throw();
00152 };
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167 class MSSelectionUvDistError : public MSSelectionError {
00168 public:
00169
00170 MSSelectionUvDistError (const String& message,Category c=GENERAL);
00171 ~MSSelectionUvDistError () throw();
00172 };
00173
00174 class MSSelectionUvDistParseError: public MSSelectionUvDistError {
00175 public:
00176 MSSelectionUvDistParseError (const String& message,Category c=GENERAL);
00177 ~MSSelectionUvDistParseError () throw();
00178 };
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193 class MSSelectionSpwError : public MSSelectionError {
00194 public:
00195
00196 MSSelectionSpwError (const String& message,Category c=GENERAL);
00197 ~MSSelectionSpwError () throw();
00198 };
00199
00200 class MSSelectionSpwParseError: public MSSelectionSpwError {
00201 public:
00202 MSSelectionSpwParseError (const String& message,Category c=GENERAL);
00203 ~MSSelectionSpwParseError () throw();
00204 };
00205
00206 class MSSelectionSpwWarning: public MSSelectionSpwError {
00207 public:
00208 MSSelectionSpwWarning (const String& message,Category c=GENERAL);
00209 ~MSSelectionSpwWarning () throw();
00210 };
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224 class MSSelectionScanError : public MSSelectionError {
00225 public:
00226
00227 MSSelectionScanError (const String& message,Category c=GENERAL);
00228 ~MSSelectionScanError () throw();
00229 };
00230
00231 class MSSelectionScanParseError: public MSSelectionScanError {
00232 public:
00233 MSSelectionScanParseError (const String& message,Category c=GENERAL);
00234 ~MSSelectionScanParseError () throw();
00235 };
00236
00237 class MSSelectionScanWarning: public MSSelectionScanError {
00238 public:
00239 MSSelectionScanWarning (const String& message,Category c=GENERAL);
00240 ~MSSelectionScanWarning () throw();
00241 };
00242
00243
00244 String constructMessage(const Int pos, const String& command);
00245
00246
00247
00248
00249
00250
00251
00252
00253
00254
00255
00256
00257
00258 class MSSelectionArrayError : public MSSelectionError {
00259 public:
00260
00261 MSSelectionArrayError (const String& message,Category c=GENERAL);
00262 ~MSSelectionArrayError () throw();
00263 };
00264
00265 class MSSelectionArrayParseError: public MSSelectionArrayError {
00266 public:
00267 MSSelectionArrayParseError (const String& message,Category c=GENERAL);
00268 ~MSSelectionArrayParseError () throw();
00269 };
00270
00271 class MSSelectionArrayWarning: public MSSelectionArrayError {
00272 public:
00273 MSSelectionArrayWarning (const String& message,Category c=GENERAL);
00274 ~MSSelectionArrayWarning () throw();
00275 };
00276
00277
00278 String constructMessage(const Int pos, const String& command);
00279 }
00280
00281 #endif