00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __FAXPP__ERROR_H
00018 #define __FAXPP__ERROR_H
00019
00021 typedef enum {
00022 NO_ERROR = 0,
00023 DOUBLE_DASH_IN_COMMENT,
00024 PREMATURE_END_OF_BUFFER,
00025 INVALID_START_OF_COMMENT,
00026 INVALID_CHAR_IN_START_ELEMENT,
00027 INVALID_CHAR_IN_ATTRIBUTE,
00028 INVALID_CHAR_IN_END_ELEMENT,
00029 NON_WHITESPACE_OUTSIDE_DOC_ELEMENT,
00030 BAD_ENCODING,
00031 UNSUPPORTED_ENCODING,
00032 ADDITIONAL_DOCUMENT_ELEMENT,
00033 INVALID_CHAR_IN_PI_NAME,
00034 INVALID_PI_NAME_OF_XML,
00035 INVALID_CHAR_IN_ELEMENT_NAME,
00036 INVALID_CHAR_IN_ATTRIBUTE_NAME,
00037 RESTRICTED_CHAR,
00038 INVALID_CHAR_IN_ENTITY_REFERENCE,
00039 INVALID_CHAR_IN_CHAR_REFERENCE,
00040 INVALID_CHAR_IN_XML_DECL,
00041 EXPECTING_EQUALS,
00042 EXPECTING_WHITESPACE,
00043 UNKNOWN_XML_VERSION,
00044 INVALID_ENCODING_VALUE,
00045 CDATA_END_IN_ELEMENT_CONTENT,
00046 UNDEFINED_ENTITY,
00047 INVALID_DOCTYPE_DECL,
00048 INVALID_CHAR_IN_DOCTYPE_NAME,
00049 INVALID_SYSTEM_ID,
00050 EXPECTING_SYSTEM_LITERAL,
00051 INVALID_PUBLIC_ID,
00052 INVALID_CHAR_IN_PUBID_LITERAL,
00053 EXPECTING_PUBID_LITERAL,
00054 INVALID_DTD_DECL,
00055 INVALID_CHAR_IN_ELEMENTDECL_NAME,
00056 INVALID_CHAR_IN_ATTLISTDECL_NAME,
00057 INVALID_CHAR_IN_NOTATIONDECL_NAME,
00058 INVALID_CHAR_IN_ENTITYDECL_NAME,
00059 INVALID_ENTITYDECL,
00060 REFERENCE_TO_UNPARSED_ENTITY,
00061 RECURSIVE_ENTITY,
00062 INCOMPLETE_MARKUP_IN_ENTITY_VALUE,
00063 REFERENCE_TO_EXTERNAL_ENTITY,
00064 ILLEGAL_CHARACTER_REFERENCE,
00065 ILLEGAL_PARAMETER_ENTITY,
00066 CANT_LOCATE_EXTERNAL_ENTITY,
00067 DONT_PARSE_EXTERNAL_ENTITY,
00068 INVALID_ATTRIBUTE_TYPE,
00069 INVALID_DEFAULTDECL,
00070 INVALID_ELEMENTDECL_CONTENT,
00071 INVALID_CONDITIONAL_SECTION,
00072 IMPROPER_NESTING_OF_ENTITY,
00073 PARAMETER_ENTITY_IN_INTERNAL_SUBSET,
00074 OUT_OF_MEMORY,
00075
00076 ELEMENT_NAME_MISMATCH,
00077 NO_URI_FOR_PREFIX,
00078 DUPLICATE_ATTRIBUTES,
00079 INVALID_NAMESPACE_DECLARATION,
00080 INVALID_XMLSPACE_VALUE
00081 } FAXPP_Error;
00082
00088 const char *FAXPP_err_to_string(FAXPP_Error err);
00089
00090 #endif