Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

wbxml_errors.h

Go to the documentation of this file.
00001 /*
00002  * WBXML Lib, the WBXML Library.
00003  * Copyright (C) 2002-2003  Aymerick Jéhanne
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 (version 2.1) as published by the Free Software Foundation.
00008  * 
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  * 
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  * LGPL v2.1: http://www.gnu.org/licenses/lgpl.txt
00019  *
00020  * Author Contact: libwbxml@jehanne.org
00021  * WBXML Lib home: http://libwbxml.jehanne.org
00022  */
00023  
00034 #ifndef WBXML_ERRORS_H
00035 #define WBXML_ERRORS_H
00036 
00037 
00038 #ifdef __cplusplus
00039 extern "C" {
00040 #endif /* __cplusplus */
00041 
00049 typedef enum WBXMLError_e {
00050     /* Generic Errors */
00051     WBXML_OK = 0,       
00052     WBXML_NOT_ENCODED,  
00053     WBXML_ERROR_ATTR_TABLE_UNDEFINED,
00054     WBXML_ERROR_BAD_DATETIME,
00055     WBXML_ERROR_BAD_PARAMETER,    
00056     WBXML_ERROR_INTERNAL,
00057     WBXML_ERROR_LANG_TABLE_UNDEFINED,
00058     WBXML_ERROR_NOT_ENOUGH_MEMORY,
00059     WBXML_ERROR_NOT_IMPLEMENTED,
00060     WBXML_ERROR_TAG_TABLE_UNDEFINED,
00061     WBXML_ERROR_B64_ENC,
00062 #if defined( WBXML_SUPPORT_WV )
00063     WBXML_ERROR_WV_DATETIME_FORMAT,
00064 #endif /* WBXML_SUPPORT_WV */
00065     /* WBXML Parser Errors */    
00066     WBXML_ERROR_ATTR_VALUE_TABLE_UNDEFINED,
00067     WBXML_ERROR_BAD_LITERAL_INDEX,
00068     WBXML_ERROR_BAD_NULL_TERMINATED_STRING_IN_STRING_TABLE,
00069     WBXML_ERROR_BAD_OPAQUE_LENGTH,
00070     WBXML_ERROR_EMPTY_WBXML,
00071     WBXML_ERROR_END_OF_BUFFER,
00072     WBXML_ERROR_ENTITY_CODE_OVERFLOW,
00073     WBXML_ERROR_EXT_VALUE_TABLE_UNDEFINED,
00074     WBXML_ERROR_INVALID_STRTBL_INDEX,
00075     WBXML_ERROR_LITERAL_NOT_NULL_TERMINATED_IN_STRING_TABLE,
00076     WBXML_ERROR_NOT_NULL_TERMINATED_INLINE_STRING,
00077     WBXML_ERROR_NULL_PARSER,
00078     WBXML_ERROR_NULL_STRING_TABLE,
00079     WBXML_ERROR_STRING_EXPECTED,
00080     WBXML_ERROR_STRTBL_LENGTH,   
00081     WBXML_ERROR_UNKNOWN_ATTR,
00082     WBXML_ERROR_UNKNOWN_ATTR_VALUE,
00083     WBXML_ERROR_UNKNOWN_EXTENSION_TOKEN,
00084     WBXML_ERROR_UNKNOWN_EXTENSION_VALUE,
00085     WBXML_ERROR_UNKNOWN_PUBLIC_ID,
00086     WBXML_ERROR_UNKNOWN_TAG,
00087     WBXML_ERROR_UNVALID_MBUINT32,
00088 #if defined( WBXML_SUPPORT_WV )
00089     WBXML_ERROR_WV_INTEGER_OVERFLOW,
00090 #endif /* WBXML_SUPPORT_WV */
00091     /* WBXML Encoder Errors */
00092     WBXML_ERROR_ENCODER_APPEND_DATA,
00093     WBXML_ERROR_STRTBL_DISABLED,
00094     WBXML_ERROR_UNKNOWN_XML_LANGUAGE,
00095     WBXML_ERROR_XML_NODE_NOT_ALLOWED,
00096     WBXML_ERROR_XML_NULL_ATTR_NAME,
00097     WBXML_ERROR_XML_PARSING_FAILED,
00098 #if defined( WBXML_SUPPORT_SYNCML )
00099     WBXML_ERROR_XML_DEVINF_CONV_FAILED,
00100 #endif /* WBXML_SUPPORT_WV */
00101     WBXML_ERROR_NO_XMLPARSER
00102 } WBXMLError;
00103 
00104 
00110 WBXML_DECLARE(const WB_UTINY *) wbxml_errors_string(WBXMLError error_code);
00111 
00114 #ifdef __cplusplus
00115 }
00116 #endif /* __cplusplus */
00117 
00118 #endif /* WBXML_ERRORS_H */

Generated on Mon Nov 24 20:09:42 2003 for WBXML Library by doxygen1.3-rc1