casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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: 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 CASA_SORTERROR_H
29 #define CASA_SORTERROR_H
30 
31 #include <casacore/casa/aips.h>
33 
34 
35 namespace casacore { //# NAMESPACE CASACORE - BEGIN
36 
37 // <summary> Generic Sort exception </summary>
38 // <use visibility=export>
39 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
40 // <prerequisite>
41 // <li> <linkto class=Sort>Sort</linkto>
42 // </prerequisite>
43 // <synopsis>
44 // SortError is the generic Sort exception; catching this one means catching
45 // all Sort exceptions. Note that you have to catch AipsError to catch
46 // all possible exceptions.
47 // </synopsis>
48 class SortError : public AipsError {
49 public:
52  ~SortError () noexcept;
53 };
54 
55 
56 // <summary> Invalid data type used for this sort key </summary>
57 // <use visibility=export>
58 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
59 // <prerequisite>
60 // <li> <linkto class=Sort>Sort</linkto>
61 // </prerequisite>
62 // <synopsis>
63 // Invalid data type used for this sort key
64 // </synopsis>
65 class SortInvDT : public SortError {
66 public:
68  ~SortInvDT () noexcept;
69 };
70 
71 // <summary> Invalid increment used for this sort key </summary>
72 // <use visibility=export>
73 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
74 // <prerequisite>
75 // <li> <linkto class=Sort>Sort</linkto>
76 // </prerequisite>
77 // <synopsis>
78 // Invalid increment used for this sort key.
79 // The increment should be >= size of sort key.
80 // </synopsis>
81 class SortInvIncr : public SortError {
82 public:
84  ~SortInvIncr () noexcept;
85 };
86 
87 // <summary> No data array given to Sort constructor. </summary>
88 // <use visibility=export>
89 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
90 // <prerequisite>
91 // <li> <linkto class=Sort>Sort</linkto>
92 // </prerequisite>
93 // <synopsis>
94 // No data array has been given to Sort constructor.
95 // </synopsis>
96 class SortNoData : public SortError {
97 public:
99  ~SortNoData () noexcept;
100 };
101 
102 // <summary> Invalid sort option given to routine dosort. </summary>
103 // <use visibility=export>
104 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
105 // <prerequisite>
106 // <li> <linkto class=Sort>Sort</linkto>
107 // </prerequisite>
108 // <synopsis>
109 // Invalid sort option has been given to routine dosort.
110 // </synopsis>
111 class SortInvOpt : public SortError {
112 public:
114  ~SortInvOpt () noexcept;
115 };
116 
117 
118 } //# NAMESPACE CASACORE - END
119 
120 #endif
Invalid sort option given to routine dosort.
Definition: SortError.h:111
SortInvOpt(Category c=INVALID_ARGUMENT)
Invalid data type used for this sort key.
Definition: SortError.h:65
~SortInvOpt() noexcept
Generic Sort exception.
Definition: SortError.h:48
~SortError() noexcept
~SortInvDT() noexcept
SortNoData(Category c=INITIALIZATION)
SortInvIncr(Category c=INVALID_ARGUMENT)
~SortNoData() noexcept
Invalid increment used for this sort key.
Definition: SortError.h:81
Base class for all Casacore library errors.
Definition: Error.h:134
SortError(Category c=GENERAL)
const Double c
Fundamental physical constants (SI units):
String: the storage and methods of handling collections of characters.
Definition: String.h:225
SortInvDT(Category c=INVALID_ARGUMENT)
No data array given to Sort constructor.
Definition: SortError.h:96