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