casacore
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".
62  // Construct with given message.
65  void reset() {message="";}
67  ~MSSelectionError () noexcept;
69  };
70  //
71  //-------------------------------------------------------------------
72  //
74  public:
77  };
78  //
79  //-------------------------------------------------------------------
80  //
82  public:
84  ~MSSelectionNullExpr () noexcept;
85  };
86  //
87  //-------------------------------------------------------------------
88  //
90  public:
92  ~MSSelectionNullTEN () noexcept;
93  };
94  //
95  //-------------------------------------------------------------------
96  //
98  public:
99  // Add given message to string "MSSelection time error: ".
102  };
103 
105  public:
108  };
109  //
110  //-------------------------------------------------------------------
111  //
113  public:
114  // Add given message to string "MSSelection time error: ".
117  };
118  //
119  //-------------------------------------------------------------------
120  //
121 
123  public:
126  };
127  //
128  //-------------------------------------------------------------------
129  //
131  public:
132  // Add given message to string "MSSelection time error: ".
135  };
136 
137  //
138  //-------------------------------------------------------------------
139  //
141  public:
144  };
145  //
146  //-------------------------------------------------------------------
147  //
149  public:
152  };
153  //
154  //-------------------------------------------------------------------
155  //
157  public:
158  // Add given message to string "MSSelection time error: ".
161  };
162 
164  public:
167  };
168  //
169  //-------------------------------------------------------------------
170  //
172  public:
173  // Add given message to string "MSSelection time error: ".
175  ~MSSelectionSpwError () noexcept;
176  };
177 
179  public:
182  };
183 
185  public:
188  };
189  //
190  //-------------------------------------------------------------------
191  //
193  public:
194  // Add given message to string "MSSelection time error: ".
197  };
198 
200  public:
203  };
204 
206  public:
209  };
210  //
211  //-------------------------------------------------------------------
212  //
214  public:
215  // Add given message to string "MSSelection time error: ".
218  };
219 
221  public:
224  };
225 
227  public:
230  };
231  //
232  //-------------------------------------------------------------------
233  //
235  public:
236  // Add given message to string "MSSelection time error: ".
239  };
240 
242  public:
245  };
246 
248  public:
251  };
252 
253  //
254  //-------------------------------------------------------------------
255  //
257  public:
258  // Add given message to string "MSSelection time error: ".
261  };
262 
264  public:
267  };
268 
270  public:
273  };
274  //
275  //-------------------------------------------------------------------
276  //
278  public:
279  // Add given message to string "MSSelection time error: ".
282  };
283 
285  public:
288  };
289 
291  public:
294  };
295  //
296  //-------------------------------------------------------------------
297  //
299  public:
300  // Add given message to string "MSSelection time error: ".
303  };
304 
306  public:
309  };
310 
311  //
312  //-------------------------------------------------------------------
313  //
314  String constructMessage(const Int pos, const String& command);
315 } //# NAMESPACE CASACORE - END
316 
317 #endif
String message
Definition: Error.h:203
MSSelectionAntennaError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionAntennaParseError(const String &message, Category c=GENERAL)
MSSelectionArrayError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionArrayParseError(const String &message, Category c=GENERAL)
MSSelectionArrayWarning(const String &message, Category c=GENERAL)
MSSelectionError(const String &message, Category c=GENERAL)
MSSelectionError(Category c=GENERAL)
The default constructor generates the message "Table error".
void addMessage(String &message)
void changeMessage(String &message)
Construct with given message.
MSSelectionFeedError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionFeedParseError(const String &message, Category c=GENERAL)
MSSelectionFieldError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionFieldParseError(const String &message, Category c=GENERAL)
MSSelectionFieldWarning(const String &message, Category c=GENERAL)
MSSelectionNullExpr(const String &message, Category c=GENERAL)
MSSelectionNullSelection(const String &message, Category c=GENERAL)
MSSelectionNullTEN(const String &message, Category c=GENERAL)
MSSelectionObservationError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionObservationParseError(const String &message, Category c=GENERAL)
MSSelectionObservationWarning(const String &message, Category c=GENERAL)
MSSelectionPolnError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionPolnParseError(const String &message, Category c=GENERAL)
MSSelectionPolnWarning(const String &message, Category c=GENERAL)
MSSelectionScanError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionScanParseError(const String &message, Category c=GENERAL)
MSSelectionScanWarning(const String &message, Category c=GENERAL)
MSSelectionSpwError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionSpwParseError(const String &message, Category c=GENERAL)
MSSelectionSpwWarning(const String &message, Category c=GENERAL)
MSSelectionStateError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionStateParseError(const String &message, Category c=GENERAL)
MSSelectionStateWarning(const String &message, Category c=GENERAL)
MSSelectionTimeError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionTimeParseError(const String &message, Category c=GENERAL)
MSSelectionUvDistError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
MSSelectionUvDistParseError(const String &message, Category c=GENERAL)
String: the storage and methods of handling collections of characters.
Definition: String.h:225
const Double c
Fundamental physical constants (SI units):
this file contains all the compiler specific defines
Definition: mainpage.dox:28
String constructMessage(const Int pos, const String &command)
int Int
Definition: aipstype.h:50
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42