/Users/maurits/Documents/studie/afstuderen/biosphere/include/biosphere_error.h

Go to the documentation of this file.
00001 /*
00002  * Author: MA Hartman
00003  * Date: feb 21, 2007
00004  * 
00005  * Function:
00006  * Bio-SPHERE error codes.
00007  * 
00008  * License information:
00009  * 
00010  * Copyright (c) 2006 Maurits Hartman
00011  *
00012  * Permission is hereby granted, free of charge, to any person
00013  * obtaining a copy of this software and associated documentation
00014  * files (the "Software"), to deal in the Software without
00015  * restriction, including without limitation the rights to use,
00016  * copy, modify, merge, publish, distribute, sublicense, and/or sell
00017  * copies of the Software, and to permit persons to whom the
00018  * Software is furnished to do so, subject to the following
00019  * conditions:
00020  * 
00021  * The above copyright notice and this permission notice shall be
00022  * included in all copies or substantial portions of the Software.
00023  * 
00024  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00025  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
00026  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00027  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
00028  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
00029  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00030  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00031  * OTHER DEALINGS IN THE SOFTWARE.
00032  * 
00033  */
00034 
00035 #ifndef BIOSPHERE_ERROR_H
00036 #define BIOSPHERE_ERROR_H
00037 
00038 #include <biosphere.h>
00039 
00040 #ifdef __cplusplus
00041   extern "C" {
00042 #endif
00043 
00044 
00045 /*******************************************************
00046  *                                                     *
00047  *  BIO_SPHERE ERROR CODES                             *
00048  *                                                     *
00049  *******************************************************/
00050 
00064 typedef bs_uint32 bs_status;
00065 
00074 #define BS_OK                                                   0x00000000
00075 
00076 #define BS_ERROR                                                0x00000001
00077 
00078 #define BS_NO_MEMORY                                    0x00000002
00079 
00080 #define BS_NOT_IMPLEMENTED                              0x00000003
00081 
00082 #define BS_INIT_ERROR_OPTION                    0x00000004
00083 
00084 #define BS_INIT_ERROR_DB                                0x00000005
00085 
00086 #define BS_INIT_ERROR_SERVICE                   0x00000006
00087 
00088 #define BS_INIT_ERROR_MODULE                    0x00000007
00089 
00090 #define BS_INIT_ERROR_LISTENER                  0x00000008
00091 
00092 
00107 #define BS_HTTP_ERROR                                   0x00001000
00108 
00109 
00126 #define BS_NO_SERVICE                                   0x00000100
00127 
00131 #define BS_SERVICE_NOT_FOUND                    0x00000101
00132 
00136 #define BS_SERVICE_DOUBLE                               0x00000102
00137 
00141 #define BS_SERVICE_NUM_PARTS_MISMATCH   0x00000103
00142 
00146 #define BS_SERVICE_PART_INCORRECT               0x00000104
00147 
00161 #define BS_XML_PARSE_ERROR                              0x00000200
00162 
00163 #define BS_XML_BUF_TOO_SMALL                    0x00000201
00164 
00165 #define BS_XML_PARSE_INCOMPLETE                 0x00000202
00166 
00167 #define BS_XML_UNKNOWN_ELEMENT                  0x00000203
00168 
00169 #define BS_XML_UNKNOWN_ROOT                             0x00000204
00170 
00171 #define BS_XML_NWF                                              0x00000205
00172 
00173 #define BS_XML_DATA_TYPE_UNKNOWN                0x00000206
00174 
00187 #define BS_TYPE_ERROR                                   0x00000400
00188 
00189 #define BS_TYPE_RANGE                                   0x00000401
00190 
00191 #define BS_TYPE_CONVERT_ERROR                   0x00000402
00192 
00193 #define BS_TYPE_STRING_NO_TERM                  0x00000403
00194 
00195 #define BS_TYPE_NO_BOOLEAN                              0x00000404
00196 
00197 #define BS_TYPE_BYTE_ERROR                              0x00000405
00198 
00199 
00208 #ifdef __cplusplus
00209   }
00210 #endif
00211 #endif /*BIOSPHERE_ERROR_H_*/

Generated on Tue Jul 17 09:50:52 2007 for Bio-SPHERE by  doxygen 1.5.1