casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
SortError.h
Go to the documentation of this file.
00001 //# SortError.h: Error classes for the sort class
00002 //# Copyright (C) 1993,1994,1995,1999,2000
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Id: SortError.h 20551 2009-03-25 00:11:33Z Malte.Marquarding $
00027 
00028 #ifndef CASA_SORTERROR_H
00029 #define CASA_SORTERROR_H
00030 
00031 #include <casa/aips.h>
00032 #include <casa/Exceptions/Error.h>
00033 
00034 
00035 namespace casa { //# NAMESPACE CASA - BEGIN
00036 
00037 // <summary> Generic Sort exception </summary>
00038 // <use visibility=export>
00039 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
00040 // <prerequisite>
00041 //   <li> <linkto class=Sort>Sort</linkto>
00042 // </prerequisite>
00043 // <synopsis> 
00044 // SortError is the generic Sort exception; catching this one means catching
00045 // all Sort exceptions. Note that you have to catch AipsError to catch
00046 // all possible exceptions.
00047 // </synopsis> 
00048 class SortError : public AipsError {
00049 public:
00050     SortError (Category c=GENERAL);
00051     SortError (const String&,Category c=GENERAL);
00052     ~SortError () throw();
00053 };
00054 
00055 
00056 // <summary> Invalid data type used for this sort key </summary>
00057 // <use visibility=export>
00058 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
00059 // <prerequisite>
00060 //   <li> <linkto class=Sort>Sort</linkto>
00061 // </prerequisite>
00062 // <synopsis> 
00063 // Invalid data type used for this sort key
00064 // </synopsis> 
00065 class SortInvDT : public SortError {
00066 public:
00067     SortInvDT (Category c=INVALID_ARGUMENT);
00068     ~SortInvDT () throw();
00069 };
00070 
00071 // <summary> Invalid increment used for this sort key </summary>
00072 // <use visibility=export>
00073 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
00074 // <prerequisite>
00075 //   <li> <linkto class=Sort>Sort</linkto>
00076 // </prerequisite>
00077 // <synopsis> 
00078 // Invalid increment used for this sort key.
00079 // The increment should be >= size of sort key.
00080 // </synopsis> 
00081 class SortInvIncr : public SortError {
00082 public:
00083     SortInvIncr (Category c=INVALID_ARGUMENT);
00084     ~SortInvIncr () throw();
00085 };
00086 
00087 // <summary> No data array given to Sort constructor. </summary>
00088 // <use visibility=export>
00089 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
00090 // <prerequisite>
00091 //   <li> <linkto class=Sort>Sort</linkto>
00092 // </prerequisite>
00093 // <synopsis> 
00094 // No data array has been given to Sort constructor.
00095 // </synopsis> 
00096 class SortNoData : public SortError {
00097 public:
00098     SortNoData (Category c=INITIALIZATION);
00099     ~SortNoData () throw();
00100 };
00101 
00102 // <summary> Invalid sort option given to routine dosort. </summary>
00103 // <use visibility=export>
00104 // <reviewed reviewer="Friso Olnon" date="1995/03/01" tests="" demos="">
00105 // <prerequisite>
00106 //   <li> <linkto class=Sort>Sort</linkto>
00107 // </prerequisite>
00108 // <synopsis> 
00109 // Invalid sort option has been given to routine dosort.
00110 // </synopsis> 
00111 class SortInvOpt : public SortError {
00112 public:
00113     SortInvOpt (Category c=INVALID_ARGUMENT);
00114     ~SortInvOpt () throw();
00115 };
00116 
00117 
00118 } //# NAMESPACE CASA - END
00119 
00120 #endif