casacore
ms
MSSel
MSSelectionError.h
Go to the documentation of this file.
1
//# MSSelectionError.h: MSSelection error classes
2
//# Copyright (C) 1994,1995,1996,1997,1999,2000
3
//# Associated Universities, Inc. Washington DC, USA.
4
//#
5
//# This library is free software; you can redistribute it and/or modify it
6
//# under the terms of the GNU Library General Public License as published by
7
//# the Free Software Foundation; either version 2 of the License, or (at your
8
//# option) any later version.
9
//#
10
//# This library is distributed in the hope that it will be useful, but WITHOUT
11
//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13
//# License for more details.
14
//#
15
//# You should have received a copy of the GNU Library General Public License
16
//# along with this library; if not, write to the Free Software Foundation,
17
//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18
//#
19
//# Correspondence concerning AIPS++ should be addressed as follows:
20
//# Internet email: aips2-request@nrao.edu.
21
//# Postal address: AIPS++ Project Office
22
//# National Radio Astronomy Observatory
23
//# 520 Edgemont Road
24
//# Charlottesville, VA 22903-2475 USA
25
//#
26
//# $Id$
27
28
#ifndef MS_MSSELECTIONERROR_H
29
#define MS_MSSELECTIONERROR_H
30
31
//# Includes
32
#include <casacore/casa/aips.h>
33
#include <casacore/casa/Exceptions/Error.h>
34
35
36
namespace
casacore
{
//# NAMESPACE CASACORE - BEGIN
37
38
//# This header file defines the error classes thrown by the
39
//# MSSelection and related classes.
40
41
42
// <summary>
43
// </summary>
44
// <use visibility=export>
45
// <reviewed reviewer="UNKNOWN" date="" tests="">
46
// </reviewed>
47
48
// <synopsis>
49
// The top-level generic MSSelection exception class. All
50
// exceptions thrown by the MSSelection and related classes are
51
// derived from this. Catching this class will catch only MSSelection
52
// exceptions (but all exceptions from the MSSelection line of
53
// classes). To catch more specific MSSelection exceptions, catch
54
// the derived classes. Note that you have to catch AipsError to
55
// catch all possible exceptions thrown by all of Casacore modules!
56
//</synopsis>
57
58
class
MSSelectionError
:
public
AipsError
{
59
public
:
60
// The default constructor generates the message "Table error".
61
MSSelectionError
(
Category
c
=
GENERAL
);
62
// Construct with given message.
63
void
changeMessage
(
String
&
message
);
64
void
addMessage
(
String
&
message
);
65
void
reset
() {
message
=
""
;}
66
MSSelectionError
(
const
String
&
message
,
Category
c
=
GENERAL
);
67
~MSSelectionError
() noexcept;
68
Bool
hasMessage
;
69
};
70
//
71
//-------------------------------------------------------------------
72
//
73
class
MSSelectionNullSelection
: public
MSSelectionError
{
74
public
:
75
MSSelectionNullSelection
(
const
String
&
message
,
Category
c
=
GENERAL
);
76
~
MSSelectionNullSelection
() noexcept;
77
};
78
//
79
//-------------------------------------------------------------------
80
//
81
class
MSSelectionNullExpr
:
public
MSSelectionError
{
82
public
:
83
MSSelectionNullExpr
(
const
String
&
message
,
Category
c
=
GENERAL
);
84
~
MSSelectionNullExpr
() noexcept;
85
};
86
//
87
//-------------------------------------------------------------------
88
//
89
class
MSSelectionNullTEN
:
public
MSSelectionError
{
90
public
:
91
MSSelectionNullTEN
(
const
String
&
message
,
Category
c
=
GENERAL
);
92
~
MSSelectionNullTEN
() noexcept;
93
};
94
//
95
//-------------------------------------------------------------------
96
//
97
class
MSSelectionTimeError
:
public
MSSelectionError
{
98
public
:
99
// Add given message to string "MSSelection time error: ".
100
MSSelectionTimeError
(
const
String
&
message
,
Category
c
=
GENERAL
);
101
~
MSSelectionTimeError
() noexcept;
102
};
103
104
class
MSSelectionTimeParseError
:
public
MSSelectionTimeError
{
105
public
:
106
MSSelectionTimeParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
107
~
MSSelectionTimeParseError
() noexcept;
108
};
109
//
110
//-------------------------------------------------------------------
111
//
112
class
MSSelectionAntennaError
:
public
MSSelectionError
{
113
public
:
114
// Add given message to string "MSSelection time error: ".
115
MSSelectionAntennaError
(
const
String
&
message
,
Category
c
=
GENERAL
);
116
~
MSSelectionAntennaError
() noexcept;
117
};
118
//
119
//-------------------------------------------------------------------
120
//
121
122
class
MSSelectionAntennaParseError
:
public
MSSelectionAntennaError
{
123
public
:
124
MSSelectionAntennaParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
125
~
MSSelectionAntennaParseError
() noexcept;
126
};
127
//
128
//-------------------------------------------------------------------
129
//
130
class
MSSelectionFieldError
:
public
MSSelectionError
{
131
public
:
132
// Add given message to string "MSSelection time error: ".
133
MSSelectionFieldError
(
const
String
&
message
,
Category
c
=
GENERAL
);
134
~
MSSelectionFieldError
() noexcept;
135
};
136
137
//
138
//-------------------------------------------------------------------
139
//
140
class
MSSelectionFieldParseError
:
public
MSSelectionFieldError
{
141
public
:
142
MSSelectionFieldParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
143
~
MSSelectionFieldParseError
() noexcept;
144
};
145
//
146
//-------------------------------------------------------------------
147
//
148
class
MSSelectionFieldWarning
:
public
MSSelectionFieldError
{
149
public
:
150
MSSelectionFieldWarning
(
const
String
&
message
,
Category
c
=
GENERAL
);
151
~
MSSelectionFieldWarning
() noexcept;
152
};
153
//
154
//-------------------------------------------------------------------
155
//
156
class
MSSelectionUvDistError
:
public
MSSelectionError
{
157
public
:
158
// Add given message to string "MSSelection time error: ".
159
MSSelectionUvDistError
(
const
String
&
message
,
Category
c
=
GENERAL
);
160
~
MSSelectionUvDistError
() noexcept;
161
};
162
163
class
MSSelectionUvDistParseError
:
public
MSSelectionUvDistError
{
164
public
:
165
MSSelectionUvDistParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
166
~
MSSelectionUvDistParseError
() noexcept;
167
};
168
//
169
//-------------------------------------------------------------------
170
//
171
class
MSSelectionSpwError
:
public
MSSelectionError
{
172
public
:
173
// Add given message to string "MSSelection time error: ".
174
MSSelectionSpwError
(
const
String
&
message
,
Category
c
=
GENERAL
);
175
~
MSSelectionSpwError
() noexcept;
176
};
177
178
class
MSSelectionSpwParseError
:
public
MSSelectionSpwError
{
179
public
:
180
MSSelectionSpwParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
181
~
MSSelectionSpwParseError
() noexcept;
182
};
183
184
class
MSSelectionSpwWarning
:
public
MSSelectionSpwError
{
185
public
:
186
MSSelectionSpwWarning
(
const
String
&
message
,
Category
c
=
GENERAL
);
187
~
MSSelectionSpwWarning
() noexcept;
188
};
189
//
190
//-------------------------------------------------------------------
191
//
192
class
MSSelectionScanError
:
public
MSSelectionError
{
193
public
:
194
// Add given message to string "MSSelection time error: ".
195
MSSelectionScanError
(
const
String
&
message
,
Category
c
=
GENERAL
);
196
~
MSSelectionScanError
() noexcept;
197
};
198
199
class
MSSelectionScanParseError
:
public
MSSelectionScanError
{
200
public
:
201
MSSelectionScanParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
202
~
MSSelectionScanParseError
() noexcept;
203
};
204
205
class
MSSelectionScanWarning
:
public
MSSelectionScanError
{
206
public
:
207
MSSelectionScanWarning
(
const
String
&
message
,
Category
c
=
GENERAL
);
208
~
MSSelectionScanWarning
() noexcept;
209
};
210
//
211
//-------------------------------------------------------------------
212
//
213
class
MSSelectionArrayError
:
public
MSSelectionError
{
214
public
:
215
// Add given message to string "MSSelection time error: ".
216
MSSelectionArrayError
(
const
String
&
message
,
Category
c
=
GENERAL
);
217
~
MSSelectionArrayError
() noexcept;
218
};
219
220
class
MSSelectionArrayParseError
:
public
MSSelectionArrayError
{
221
public
:
222
MSSelectionArrayParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
223
~
MSSelectionArrayParseError
() noexcept;
224
};
225
226
class
MSSelectionArrayWarning
:
public
MSSelectionArrayError
{
227
public
:
228
MSSelectionArrayWarning
(
const
String
&
message
,
Category
c
=
GENERAL
);
229
~
MSSelectionArrayWarning
() noexcept;
230
};
231
//
232
//-------------------------------------------------------------------
233
//
234
class
MSSelectionPolnError
:
public
MSSelectionError
{
235
public
:
236
// Add given message to string "MSSelection time error: ".
237
MSSelectionPolnError
(
const
String
&
message
,
Category
c
=
GENERAL
);
238
~
MSSelectionPolnError
() noexcept;
239
};
240
241
class
MSSelectionPolnParseError
:
public
MSSelectionPolnError
{
242
public
:
243
MSSelectionPolnParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
244
~
MSSelectionPolnParseError
() noexcept;
245
};
246
247
class
MSSelectionPolnWarning
:
public
MSSelectionPolnError
{
248
public
:
249
MSSelectionPolnWarning
(
const
String
&
message
,
Category
c
=
GENERAL
);
250
~
MSSelectionPolnWarning
() noexcept;
251
};
252
253
//
254
//-------------------------------------------------------------------
255
//
256
class
MSSelectionStateError
:
public
MSSelectionError
{
257
public
:
258
// Add given message to string "MSSelection time error: ".
259
MSSelectionStateError
(
const
String
&
message
,
Category
c
=
GENERAL
);
260
~
MSSelectionStateError
() noexcept;
261
};
262
263
class
MSSelectionStateParseError
:
public
MSSelectionStateError
{
264
public
:
265
MSSelectionStateParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
266
~
MSSelectionStateParseError
() noexcept;
267
};
268
269
class
MSSelectionStateWarning
:
public
MSSelectionStateError
{
270
public
:
271
MSSelectionStateWarning
(
const
String
&
message
,
Category
c
=
GENERAL
);
272
~
MSSelectionStateWarning
() noexcept;
273
};
274
//
275
//-------------------------------------------------------------------
276
//
277
class
MSSelectionObservationError
:
public
MSSelectionError
{
278
public
:
279
// Add given message to string "MSSelection time error: ".
280
MSSelectionObservationError
(
const
String
&
message
,
Category
c
=
GENERAL
);
281
~
MSSelectionObservationError
() noexcept;
282
};
283
284
class
MSSelectionObservationParseError
:
public
MSSelectionObservationError
{
285
public
:
286
MSSelectionObservationParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
287
~
MSSelectionObservationParseError
() noexcept;
288
};
289
290
class
MSSelectionObservationWarning
:
public
MSSelectionObservationError
{
291
public
:
292
MSSelectionObservationWarning
(
const
String
&
message
,
Category
c
=
GENERAL
);
293
~
MSSelectionObservationWarning
() noexcept;
294
};
295
//
296
//-------------------------------------------------------------------
297
//
298
class
MSSelectionFeedError
:
public
MSSelectionError
{
299
public
:
300
// Add given message to string "MSSelection time error: ".
301
MSSelectionFeedError
(
const
String
&
message
,
Category
c
=
GENERAL
);
302
~
MSSelectionFeedError
() noexcept;
303
};
304
305
class
MSSelectionFeedParseError
:
public
MSSelectionFeedError
{
306
public
:
307
MSSelectionFeedParseError
(
const
String
&
message
,
Category
c
=
GENERAL
);
308
~
MSSelectionFeedParseError
() noexcept;
309
};
310
311
//
312
//-------------------------------------------------------------------
313
//
314
String
constructMessage
(
const
Int
pos,
const
String
& command);
315
}
//# NAMESPACE CASACORE - END
316
317
#endif
casacore::MSSelectionPolnError
Definition:
MSSelectionError.h:234
casacore::MSSelectionPolnParseError
Definition:
MSSelectionError.h:241
casacore::MSSelectionObservationWarning
Definition:
MSSelectionError.h:290
casacore::MSSelectionError::hasMessage
Bool hasMessage
Definition:
MSSelectionError.h:68
casacore::MSSelectionError::addMessage
void addMessage(String &message)
casacore::MSSelectionFieldWarning
Definition:
MSSelectionError.h:148
casacore::MSSelectionSpwWarning
Definition:
MSSelectionError.h:184
casacore::MSSelectionError::changeMessage
void changeMessage(String &message)
Construct with given message.
casacore::MSSelectionScanParseError
Definition:
MSSelectionError.h:199
casacore::MSSelectionFeedError
Definition:
MSSelectionError.h:298
casacore::AipsError::message
String message
Definition:
Error.h:203
casacore::MSSelectionError::MSSelectionError
MSSelectionError(Category c=GENERAL)
The default constructor generates the message "Table error".
casacore::MSSelectionAntennaError
Definition:
MSSelectionError.h:112
casacore::MSSelectionPolnWarning
Definition:
MSSelectionError.h:247
casacore::MSSelectionUvDistError
Definition:
MSSelectionError.h:156
casacore::MSSelectionScanWarning
Definition:
MSSelectionError.h:205
casacore::MSSelectionStateError
Definition:
MSSelectionError.h:256
casacore::MSSelectionError::~MSSelectionError
~MSSelectionError() noexcept
casacore::MSSelectionError::reset
void reset()
Definition:
MSSelectionError.h:65
casacore::MSSelectionArrayParseError
Definition:
MSSelectionError.h:220
casacore::MSSelectionStateWarning
Definition:
MSSelectionError.h:269
casacore::MSSelectionFieldError
Definition:
MSSelectionError.h:130
casacore::MSSelectionScanError
Definition:
MSSelectionError.h:192
casacore::MSSelectionStateParseError
Definition:
MSSelectionError.h:263
casacore::MSSelectionTimeError
Definition:
MSSelectionError.h:97
casacore::AipsError::Category
Category
Definition:
Error.h:138
casacore::MSSelectionTimeParseError
Definition:
MSSelectionError.h:104
casacore::MSSelectionUvDistParseError
Definition:
MSSelectionError.h:163
casacore::Int
int Int
Definition:
aipstype.h:50
casacore
this file contains all the compiler specific defines
Definition:
mainpage.dox:28
casacore::MSSelectionFeedParseError
Definition:
MSSelectionError.h:305
casacore::C::c
const Double c
Fundamental physical constants (SI units):
casacore::MSSelectionAntennaParseError
Definition:
MSSelectionError.h:122
casacore::MSSelectionArrayError
Definition:
MSSelectionError.h:213
casacore::MSSelectionFieldParseError
Definition:
MSSelectionError.h:140
casacore::MSSelectionNullExpr
Definition:
MSSelectionError.h:81
casacore::AipsError::GENERAL
Definition:
Error.h:140
casacore::MSSelectionSpwError
Definition:
MSSelectionError.h:171
casacore::String
String: the storage and methods of handling collections of characters.
Definition:
String.h:223
casacore::Bool
bool Bool
Define the standard types used by Casacore.
Definition:
aipstype.h:42
casacore::MSSelectionNullSelection
Definition:
MSSelectionError.h:73
casacore::MSSelectionSpwParseError
Definition:
MSSelectionError.h:178
casacore::MSSelectionError
Definition:
MSSelectionError.h:58
casacore::constructMessage
String constructMessage(const Int pos, const String &command)
casacore::MSSelectionArrayWarning
Definition:
MSSelectionError.h:226
casacore::MSSelectionObservationError
Definition:
MSSelectionError.h:277
casacore::MSSelectionObservationParseError
Definition:
MSSelectionError.h:284
casacore::AipsError
Base class for all Casacore library errors.
Definition:
Error.h:134
casacore::MSSelectionNullTEN
Definition:
MSSelectionError.h:89
Generated by
1.8.16