Loading...
Searching...
No Matches
MSSelectionError.h
Go to the documentation of this file.
//# 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: casa-feedback@nrao.edu.
//# Postal address: AIPS++ Project Office
//# National Radio Astronomy Observatory
//# 520 Edgemont Road
//# Charlottesville, VA 22903-2475 USA
#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 () noexcept;
Bool hasMessage;
};
//
//-------------------------------------------------------------------
//
class MSSelectionNullSelection : public MSSelectionError {
public:
MSSelectionNullSelection (const String& message, Category c=GENERAL);
~MSSelectionNullSelection () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionNullExpr : public MSSelectionError {
public:
MSSelectionNullExpr (const String& message, Category c=GENERAL);
~MSSelectionNullExpr () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionNullTEN : public MSSelectionError {
public:
MSSelectionNullTEN (const String& message, Category c=GENERAL);
~MSSelectionNullTEN () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionTimeError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionTimeError (const String& message,Category c=GENERAL);
~MSSelectionTimeError () noexcept;
};
class MSSelectionTimeParseError: public MSSelectionTimeError {
public:
MSSelectionTimeParseError (const String& message,Category c=GENERAL);
~MSSelectionTimeParseError () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionAntennaError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionAntennaError (const String& message,Category c=GENERAL);
~MSSelectionAntennaError () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionAntennaParseError: public MSSelectionAntennaError {
public:
MSSelectionAntennaParseError (const String& message,Category c=GENERAL);
~MSSelectionAntennaParseError () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionFieldError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionFieldError (const String& message,Category c=GENERAL);
~MSSelectionFieldError () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionFieldParseError: public MSSelectionFieldError {
public:
MSSelectionFieldParseError (const String& message,Category c=GENERAL);
~MSSelectionFieldParseError () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionFieldWarning: public MSSelectionFieldError {
public:
MSSelectionFieldWarning (const String& message,Category c=GENERAL);
~MSSelectionFieldWarning () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionUvDistError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionUvDistError (const String& message,Category c=GENERAL);
~MSSelectionUvDistError () noexcept;
};
class MSSelectionUvDistParseError: public MSSelectionUvDistError {
public:
MSSelectionUvDistParseError (const String& message,Category c=GENERAL);
~MSSelectionUvDistParseError () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionSpwError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionSpwError (const String& message,Category c=GENERAL);
~MSSelectionSpwError () noexcept;
};
class MSSelectionSpwParseError: public MSSelectionSpwError {
public:
MSSelectionSpwParseError (const String& message,Category c=GENERAL);
~MSSelectionSpwParseError () noexcept;
};
class MSSelectionSpwWarning: public MSSelectionSpwError {
public:
MSSelectionSpwWarning (const String& message,Category c=GENERAL);
~MSSelectionSpwWarning () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionScanError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionScanError (const String& message,Category c=GENERAL);
~MSSelectionScanError () noexcept;
};
class MSSelectionScanParseError: public MSSelectionScanError {
public:
MSSelectionScanParseError (const String& message,Category c=GENERAL);
~MSSelectionScanParseError () noexcept;
};
class MSSelectionScanWarning: public MSSelectionScanError {
public:
MSSelectionScanWarning (const String& message,Category c=GENERAL);
~MSSelectionScanWarning () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionArrayError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionArrayError (const String& message,Category c=GENERAL);
~MSSelectionArrayError () noexcept;
};
class MSSelectionArrayParseError: public MSSelectionArrayError {
public:
MSSelectionArrayParseError (const String& message,Category c=GENERAL);
~MSSelectionArrayParseError () noexcept;
};
class MSSelectionArrayWarning: public MSSelectionArrayError {
public:
MSSelectionArrayWarning (const String& message,Category c=GENERAL);
~MSSelectionArrayWarning () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionPolnError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionPolnError (const String& message,Category c=GENERAL);
~MSSelectionPolnError () noexcept;
};
class MSSelectionPolnParseError: public MSSelectionPolnError {
public:
MSSelectionPolnParseError (const String& message,Category c=GENERAL);
~MSSelectionPolnParseError () noexcept;
};
class MSSelectionPolnWarning: public MSSelectionPolnError {
public:
MSSelectionPolnWarning (const String& message,Category c=GENERAL);
~MSSelectionPolnWarning () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionStateError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionStateError (const String& message,Category c=GENERAL);
~MSSelectionStateError () noexcept;
};
class MSSelectionStateParseError: public MSSelectionStateError {
public:
MSSelectionStateParseError (const String& message,Category c=GENERAL);
~MSSelectionStateParseError () noexcept;
};
class MSSelectionStateWarning: public MSSelectionStateError {
public:
MSSelectionStateWarning (const String& message,Category c=GENERAL);
~MSSelectionStateWarning () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionObservationError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionObservationError (const String& message,Category c=GENERAL);
~MSSelectionObservationError () noexcept;
};
class MSSelectionObservationParseError: public MSSelectionObservationError {
public:
MSSelectionObservationParseError (const String& message,Category c=GENERAL);
~MSSelectionObservationParseError () noexcept;
};
class MSSelectionObservationWarning: public MSSelectionObservationError {
public:
MSSelectionObservationWarning (const String& message,Category c=GENERAL);
~MSSelectionObservationWarning () noexcept;
};
//
//-------------------------------------------------------------------
//
class MSSelectionFeedError : public MSSelectionError {
public:
// Add given message to string "MSSelection time error: ".
MSSelectionFeedError (const String& message,Category c=GENERAL);
~MSSelectionFeedError () noexcept;
};
class MSSelectionFeedParseError: public MSSelectionFeedError {
public:
MSSelectionFeedParseError (const String& message,Category c=GENERAL);
~MSSelectionFeedParseError () noexcept;
};
//
//-------------------------------------------------------------------
//
String constructMessage(const Int pos, const String& command);
} //# NAMESPACE CASACORE - END
#endif
casacore::AipsError::AipsError
AipsError(const Char *str, Category c=GENERAL)
Creates an AipsError and initializes the error message from the parameter.
casacore::AipsError::message
String message
Definition Error.h:201
casacore::AipsError::Category
Category
Definition Error.h:136
casacore::AipsError::GENERAL
@ GENERAL
Definition Error.h:138
casacore::MSSelectionAntennaError::MSSelectionAntennaError
MSSelectionAntennaError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionAntennaError::~MSSelectionAntennaError
~MSSelectionAntennaError() noexcept
casacore::MSSelectionAntennaParseError::~MSSelectionAntennaParseError
~MSSelectionAntennaParseError() noexcept
casacore::MSSelectionAntennaParseError::MSSelectionAntennaParseError
MSSelectionAntennaParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionArrayError::MSSelectionArrayError
MSSelectionArrayError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionArrayError::~MSSelectionArrayError
~MSSelectionArrayError() noexcept
casacore::MSSelectionArrayParseError::~MSSelectionArrayParseError
~MSSelectionArrayParseError() noexcept
casacore::MSSelectionArrayParseError::MSSelectionArrayParseError
MSSelectionArrayParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionArrayWarning::~MSSelectionArrayWarning
~MSSelectionArrayWarning() noexcept
casacore::MSSelectionArrayWarning::MSSelectionArrayWarning
MSSelectionArrayWarning(const String &message, Category c=GENERAL)
casacore::MSSelectionError::MSSelectionError
MSSelectionError(const String &message, Category c=GENERAL)
casacore::MSSelectionError::MSSelectionError
MSSelectionError(Category c=GENERAL)
The default constructor generates the message "Table error".
casacore::MSSelectionError::addMessage
void addMessage(String &message)
casacore::MSSelectionError::hasMessage
Bool hasMessage
Definition MSSelectionError.h:66
casacore::MSSelectionError::~MSSelectionError
~MSSelectionError() noexcept
casacore::MSSelectionError::reset
void reset()
Definition MSSelectionError.h:63
casacore::MSSelectionError::changeMessage
void changeMessage(String &message)
Construct with given message.
casacore::MSSelectionFeedError::~MSSelectionFeedError
~MSSelectionFeedError() noexcept
casacore::MSSelectionFeedError::MSSelectionFeedError
MSSelectionFeedError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionFeedParseError::~MSSelectionFeedParseError
~MSSelectionFeedParseError() noexcept
casacore::MSSelectionFeedParseError::MSSelectionFeedParseError
MSSelectionFeedParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionFieldError::~MSSelectionFieldError
~MSSelectionFieldError() noexcept
casacore::MSSelectionFieldError::MSSelectionFieldError
MSSelectionFieldError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionFieldParseError::~MSSelectionFieldParseError
~MSSelectionFieldParseError() noexcept
casacore::MSSelectionFieldParseError::MSSelectionFieldParseError
MSSelectionFieldParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionFieldWarning::~MSSelectionFieldWarning
~MSSelectionFieldWarning() noexcept
casacore::MSSelectionFieldWarning::MSSelectionFieldWarning
MSSelectionFieldWarning(const String &message, Category c=GENERAL)
casacore::MSSelectionNullExpr::MSSelectionNullExpr
MSSelectionNullExpr(const String &message, Category c=GENERAL)
casacore::MSSelectionNullExpr::~MSSelectionNullExpr
~MSSelectionNullExpr() noexcept
casacore::MSSelectionNullSelection::~MSSelectionNullSelection
~MSSelectionNullSelection() noexcept
casacore::MSSelectionNullSelection::MSSelectionNullSelection
MSSelectionNullSelection(const String &message, Category c=GENERAL)
casacore::MSSelectionNullTEN::MSSelectionNullTEN
MSSelectionNullTEN(const String &message, Category c=GENERAL)
casacore::MSSelectionNullTEN::~MSSelectionNullTEN
~MSSelectionNullTEN() noexcept
casacore::MSSelectionObservationError::~MSSelectionObservationError
~MSSelectionObservationError() noexcept
casacore::MSSelectionObservationError::MSSelectionObservationError
MSSelectionObservationError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionObservationParseError::MSSelectionObservationParseError
MSSelectionObservationParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionObservationParseError::~MSSelectionObservationParseError
~MSSelectionObservationParseError() noexcept
casacore::MSSelectionObservationWarning::~MSSelectionObservationWarning
~MSSelectionObservationWarning() noexcept
casacore::MSSelectionObservationWarning::MSSelectionObservationWarning
MSSelectionObservationWarning(const String &message, Category c=GENERAL)
casacore::MSSelectionPolnError::MSSelectionPolnError
MSSelectionPolnError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionPolnError::~MSSelectionPolnError
~MSSelectionPolnError() noexcept
casacore::MSSelectionPolnParseError::MSSelectionPolnParseError
MSSelectionPolnParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionPolnParseError::~MSSelectionPolnParseError
~MSSelectionPolnParseError() noexcept
casacore::MSSelectionPolnWarning::~MSSelectionPolnWarning
~MSSelectionPolnWarning() noexcept
casacore::MSSelectionPolnWarning::MSSelectionPolnWarning
MSSelectionPolnWarning(const String &message, Category c=GENERAL)
casacore::MSSelectionScanError::MSSelectionScanError
MSSelectionScanError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionScanError::~MSSelectionScanError
~MSSelectionScanError() noexcept
casacore::MSSelectionScanParseError::~MSSelectionScanParseError
~MSSelectionScanParseError() noexcept
casacore::MSSelectionScanParseError::MSSelectionScanParseError
MSSelectionScanParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionScanWarning::~MSSelectionScanWarning
~MSSelectionScanWarning() noexcept
casacore::MSSelectionScanWarning::MSSelectionScanWarning
MSSelectionScanWarning(const String &message, Category c=GENERAL)
casacore::MSSelectionSpwError::~MSSelectionSpwError
~MSSelectionSpwError() noexcept
casacore::MSSelectionSpwError::MSSelectionSpwError
MSSelectionSpwError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionSpwParseError::MSSelectionSpwParseError
MSSelectionSpwParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionSpwParseError::~MSSelectionSpwParseError
~MSSelectionSpwParseError() noexcept
casacore::MSSelectionSpwWarning::MSSelectionSpwWarning
MSSelectionSpwWarning(const String &message, Category c=GENERAL)
casacore::MSSelectionSpwWarning::~MSSelectionSpwWarning
~MSSelectionSpwWarning() noexcept
casacore::MSSelectionStateError::MSSelectionStateError
MSSelectionStateError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionStateError::~MSSelectionStateError
~MSSelectionStateError() noexcept
casacore::MSSelectionStateParseError::MSSelectionStateParseError
MSSelectionStateParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionStateParseError::~MSSelectionStateParseError
~MSSelectionStateParseError() noexcept
casacore::MSSelectionStateWarning::MSSelectionStateWarning
MSSelectionStateWarning(const String &message, Category c=GENERAL)
casacore::MSSelectionStateWarning::~MSSelectionStateWarning
~MSSelectionStateWarning() noexcept
casacore::MSSelectionTimeError::~MSSelectionTimeError
~MSSelectionTimeError() noexcept
casacore::MSSelectionTimeError::MSSelectionTimeError
MSSelectionTimeError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionTimeParseError::MSSelectionTimeParseError
MSSelectionTimeParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionTimeParseError::~MSSelectionTimeParseError
~MSSelectionTimeParseError() noexcept
casacore::MSSelectionUvDistError::MSSelectionUvDistError
MSSelectionUvDistError(const String &message, Category c=GENERAL)
Add given message to string "MSSelection time error: ".
casacore::MSSelectionUvDistError::~MSSelectionUvDistError
~MSSelectionUvDistError() noexcept
casacore::MSSelectionUvDistParseError::MSSelectionUvDistParseError
MSSelectionUvDistParseError(const String &message, Category c=GENERAL)
casacore::MSSelectionUvDistParseError::~MSSelectionUvDistParseError
~MSSelectionUvDistParseError() noexcept
casacore::String
String: the storage and methods of handling collections of characters.
Definition String.h:223
casacore
this file contains all the compiler specific defines
Definition mainpage.dox:28
casacore::constructMessage
String constructMessage(const Int pos, const String &command)
casacore::Int
int Int
Definition aipstype.h:48
casacore::Bool
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40