casacore
Loading...
Searching...
No Matches
SortError.h
Go to the documentation of this file.
1// # SortError.h: Error classes for the sort class
2// # Copyright (C) 1993,1994,1995,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: casa-feedback@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#ifndef CASA_SORTERROR_H
27#define CASA_SORTERROR_H
28
29#include <casacore/casa/aips.h>
30#include <casacore/casa/Exceptions/Error.h>
31
32namespace casacore { // # NAMESPACE CASACORE - BEGIN
33
34// <summary> Generic Sort exception </summary>
35// <use visibility=export>
36// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
37// <prerequisite>
38// <li> <linkto class=Sort>Sort</linkto>
39// </prerequisite>
40// <synopsis>
41// SortError is the generic Sort exception; catching this one means catching
42// all Sort exceptions. Note that you have to catch AipsError to catch
43// all possible exceptions.
44// </synopsis>
45class SortError : public AipsError {
46 public:
49 ~SortError() noexcept;
50};
51
52// <summary> Invalid data type used for this sort key </summary>
53// <use visibility=export>
54// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
55// <prerequisite>
56// <li> <linkto class=Sort>Sort</linkto>
57// </prerequisite>
58// <synopsis>
59// Invalid data type used for this sort key
60// </synopsis>
61class SortInvDT : public SortError {
62 public:
64 ~SortInvDT() noexcept;
65};
66
67// <summary> Invalid increment used for this sort key </summary>
68// <use visibility=export>
69// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
70// <prerequisite>
71// <li> <linkto class=Sort>Sort</linkto>
72// </prerequisite>
73// <synopsis>
74// Invalid increment used for this sort key.
75// The increment should be >= size of sort key.
76// </synopsis>
77class SortInvIncr : public SortError {
78 public:
80 ~SortInvIncr() noexcept;
81};
82
83// <summary> No data array given to Sort constructor. </summary>
84// <use visibility=export>
85// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
86// <prerequisite>
87// <li> <linkto class=Sort>Sort</linkto>
88// </prerequisite>
89// <synopsis>
90// No data array has been given to Sort constructor.
91// </synopsis>
92class SortNoData : public SortError {
93 public:
95 ~SortNoData() noexcept;
96};
97
98// <summary> Invalid sort option given to routine dosort. </summary>
99// <use visibility=export>
100// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
101// <prerequisite>
102// <li> <linkto class=Sort>Sort</linkto>
103// </prerequisite>
104// <synopsis>
105// Invalid sort option has been given to routine dosort.
106// </synopsis>
107class SortInvOpt : public SortError {
108 public:
110 ~SortInvOpt() noexcept;
111};
112
113} // namespace casacore
114
115#endif
AipsError(const Char *str, Category c=GENERAL)
Creates an AipsError and initializes the error message from the parameter.
~SortError() noexcept
SortError(const String &, Category c=GENERAL)
SortError(Category c=GENERAL)
~SortInvDT() noexcept
SortInvDT(Category c=INVALID_ARGUMENT)
SortInvIncr(Category c=INVALID_ARGUMENT)
~SortInvOpt() noexcept
SortInvOpt(Category c=INVALID_ARGUMENT)
SortNoData(Category c=INITIALIZATION)
~SortNoData() noexcept
String: the storage and methods of handling collections of characters.
Definition String.h:355
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28