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
32
33namespace casacore { //# NAMESPACE CASACORE - BEGIN
34
35// <summary> Generic Sort exception </summary>
36// <use visibility=export>
37// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
38// <prerequisite>
39// <li> <linkto class=Sort>Sort</linkto>
40// </prerequisite>
41// <synopsis>
42// SortError is the generic Sort exception; catching this one means catching
43// all Sort exceptions. Note that you have to catch AipsError to catch
44// all possible exceptions.
45// </synopsis>
46class SortError : public AipsError {
47public:
50 ~SortError () noexcept;
51};
52
53
54// <summary> Invalid data type used for this sort key </summary>
55// <use visibility=export>
56// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
57// <prerequisite>
58// <li> <linkto class=Sort>Sort</linkto>
59// </prerequisite>
60// <synopsis>
61// Invalid data type used for this sort key
62// </synopsis>
63class SortInvDT : public SortError {
64public:
66 ~SortInvDT () noexcept;
67};
68
69// <summary> Invalid increment used for this sort key </summary>
70// <use visibility=export>
71// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
72// <prerequisite>
73// <li> <linkto class=Sort>Sort</linkto>
74// </prerequisite>
75// <synopsis>
76// Invalid increment used for this sort key.
77// The increment should be >= size of sort key.
78// </synopsis>
79class SortInvIncr : public SortError {
80public:
82 ~SortInvIncr () noexcept;
83};
84
85// <summary> No data array given to Sort constructor. </summary>
86// <use visibility=export>
87// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
88// <prerequisite>
89// <li> <linkto class=Sort>Sort</linkto>
90// </prerequisite>
91// <synopsis>
92// No data array has been given to Sort constructor.
93// </synopsis>
94class SortNoData : public SortError {
95public:
97 ~SortNoData () noexcept;
98};
99
100// <summary> Invalid sort option given to routine dosort. </summary>
101// <use visibility=export>
102// <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
103// <prerequisite>
104// <li> <linkto class=Sort>Sort</linkto>
105// </prerequisite>
106// <synopsis>
107// Invalid sort option has been given to routine dosort.
108// </synopsis>
109class SortInvOpt : public SortError {
110public:
112 ~SortInvOpt () noexcept;
113};
114
115
116} //# NAMESPACE CASACORE - END
117
118#endif
~SortError() noexcept
SortError(const String &, Category c=GENERAL)
SortError(Category c=GENERAL)
Invalid data type used for this sort key.
Definition SortError.h:63
~SortInvDT() noexcept
SortInvDT(Category c=INVALID_ARGUMENT)
Invalid increment used for this sort key.
Definition SortError.h:79
SortInvIncr(Category c=INVALID_ARGUMENT)
Invalid sort option given to routine dosort.
Definition SortError.h:109
~SortInvOpt() noexcept
SortInvOpt(Category c=INVALID_ARGUMENT)
No data array given to Sort constructor.
Definition SortError.h:94
SortNoData(Category c=INITIALIZATION)
~SortNoData() noexcept
String: the storage and methods of handling collections of characters.
Definition String.h:223
this file contains all the compiler specific defines
Definition mainpage.dox:28