casacore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IterError.h
Go to the documentation of this file.
1 //# IterError.h:
2 //# Copyright (C) 1993,1994,1995,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_ITERERROR_H
29 #define CASA_ITERERROR_H
30 
31 //# Includes
32 #include <casacore/casa/aips.h>
34 
35 namespace casacore { //# NAMESPACE CASACORE - BEGIN
36 
37 // <summary>Iteration error class </summary>
38 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
39 // </reviewed>
40 
41 class IterError : public AipsError {
42 public:
43  IterError(const char *msg = 0, Category c=BOUNDARY); // normal constructor
44  ~IterError () noexcept;
45 };
46 
47 // <summary>Iteration Boundary error class</summary>
48 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
49 // </reviewed>
50 
51 class IterBoundaryError : public IterError {
52 public:
53  IterBoundaryError(const char *msg = 0, Category c=BOUNDARY); // normal constructor
54  ~IterBoundaryError () noexcept;
55 };
56 
57 // <summary>Iteration initialization error</summary>
58 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
59 // </reviewed>
60 
61 class IterInitError : public IterError {
62 public:
63  IterInitError(const char *msg = 0, Category c=INITIALIZATION); // normal constructor
64  ~IterInitError () noexcept;
65 };
66 
67 // <summary>Invalide iteration error class</summary>
68 // <reviewed reviewer="UNKNOWN" date="before2004/08/25" tests="" demos="">
69 // </reviewed>
70 
71 class InvalidIterError : public IterError {
72 public:
73  InvalidIterError(const char *msg = 0, Category c=GENERAL); // normal constructor
74  ~InvalidIterError () noexcept;
75 };
76 
77 
78 } //# NAMESPACE CASACORE - END
79 
80 #endif
Iteration Boundary error class.
Definition: IterError.h:51
Iteration error class.
Definition: IterError.h:41
IterError(const char *msg=0, Category c=BOUNDARY)
IterInitError(const char *msg=0, Category c=INITIALIZATION)
Iteration initialization error.
Definition: IterError.h:61
~IterError() noexcept
Base class for all Casacore library errors.
Definition: Error.h:134
const Double c
Fundamental physical constants (SI units):
InvalidIterError(const char *msg=0, Category c=GENERAL)
IterBoundaryError(const char *msg=0, Category c=BOUNDARY)
Invalide iteration error class.
Definition: IterError.h:71