cta_errors.h

Go to the documentation of this file.
00001 /*
00002 COSTA: Problem solving environment for data assimilation
00003 Copyright (C) 2005  Nils van Velzen
00004 
00005 This library is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU Lesser General Public
00007 License as published by the Free Software Foundation; either
00008 version 2.1 of the License, or (at your option) any later version.
00009 
00010 This library is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 Lesser General Public License for more details.
00014 
00015 You should have received a copy of the GNU Lesser General Public
00016 License along with this library; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00020 /**
00021 \file cta_errors.h
00022 \brief Definitions of error return values used by COSTA.
00023 */
00024 
00025 
00026 #ifndef CTA_ERRORS_H
00027 #define CTA_ERRORS_H
00028 
00029 // Common errors
00030 /** No errors occured */
00031 #define CTA_OK                      ( 0)
00032 /** The handle of a COSTA component is not associated to any
00033     COSTA component nor is it the CTA_NULL handle. */
00034 #define CTA_ILLEGAL_HANDLE          (-2)
00035 /** A handle of a COSTA component instance corresponds to a 
00036     different component than expected */
00037 #define CTA_INCOMPATIBLE_HANDLE     (-3)
00038 /** A handle of a COSTA component cannot be found in administration */
00039 #define CTA_HANDLE_NOT_FOUND        (-4)
00040 /** Output array is too short to contain result */
00041 #define CTA_ARRAY_TOO_SHORT         (10)
00042 /** The datatype does not exist or is not supported */
00043 #define CTA_ILLEGAL_DATATYPE        (11)
00044 /** Dimensions of the component are different from input */
00045 #define CTA_DIMENSION_ERROR         (12)
00046 /** The operation is not (yet) supported for given combination of vectors-classes */
00047 #define CTA_INCOMPATIBLE_VECTORS    (13)
00048 /** The concatenation operation is not possible */
00049 #define CTA_CONCAT_NOT_POSSIBLE     (14)
00050 /** The setval operation is not possible */
00051 #define CTA_SETVAL_NOT_POSSIBLE     (15)
00052 /** Requested item not found */
00053 #define CTA_ITEM_NOT_FOUND          (16)
00054 /** Trying to access an non-initialised subtreevector */
00055 #define CTA_UNINITIALISED_SUBTREEVECTOR (17)
00056 /** Operation between two different treevectors is not possible because build-up/dimension is different */
00057 #define CTA_TREEVECTORS_NOT_COMPATIBLE   (18)
00058 /** The operation is not (yet) supported for given combination of matrix-classes */
00059 #define CTA_INCOMPATIBLE_MATRICES   (19)
00060 /** There is no implementation available for this method */
00061 #define CTA_NOT_IMPLEMENTED         (20)
00062 /** Illegal specification of userdata argument */
00063 #define CTA_WRONG_USERDATA          (21)
00064 /** Opening of file failed */
00065 #define CTA_CANNOT_OPEN_FILE        (22)
00066 /** Command is not valid */
00067 #define CTA_INVALID_COMMAND         (23)
00068 /** Error in external library */
00069 #define CTA_EXTERNAL_ERROR          (24)
00070 /** The matrix is singular */
00071 #define CTA_SINGULAR_MATRIX         (25)
00072 /** The buffer length is too small */
00073 #define CTA_BUFFER_TOO_SMALL        (26)
00074 /** The import/export format is not supported */
00075 #define CTA_FORMAT_NOT_SUPPORTED    (27)
00076 /** The metainfo of two treevectors is incompatible */ 
00077 #define CTA_INCOMPATIBLE_METAINFO   (28)
00078 /** The combined model is invalid  */ 
00079 #define CTA_COMBINED_MODEL_ERROR   (29)
00080 /** The announced observations do not fit into timespan of compute */
00081 #define CTA_ANNOUNCED_OBS_INTERVAL_ERROR (30)
00082 
00083 /** Operation is not (yet) implemented for given object */
00084 #define CTA_INPUT_OBJECT_NOT_SUPPORTED (31)
00085 /** Input arguments are of incompatible data type */
00086 #define CTA_INPUT_OBJECTS_ARE_INCOMPATIBLE (32)
00087 /** The relation tables cannot be combined */
00088 #define CTA_RELTABLES_CANNOT_BE_COMBINED (33)
00089 /** The matrix is not square              */
00090 #define CTA_MATRIX_IS_NOT_SQUARE (34)
00091 
00092 /** The input value is not correct */
00093 #define CTA_ILLEGAL_INPUT_ARGUMENT (34)
00094 
00095 /** Cannot find the process group */
00096 #define CTA_CANNOT_FIND_PROCESS_GROUP (35)
00097 
00098 
00099 /** Hmm. you have found an internal error in the COSTA implementation */
00100 #define CTA_INTERNAL_ERROR          (911)
00101 /** You tried to do something that should work but has not been implemented yet in COSTA.
00102     Please implement and help improving COSTA*/
00103 #define CTA_NOT_YET_SUPPORTED       (999)
00104 
00105 #endif

Generated on Mon Apr 6 14:05:58 2009 for COSTA by  doxygen 1.5.2