1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <guththila_defines.h>
#ifndef GUTHTHILA_ERROR_H
#define GUTHTHILA_ERROR_H
EXTERN_C_START() typedef enum guththila_error_l
{
GUTHTHILA_VALIDITY_ERROR,
GUTHTHILA_VALIDITY_WARNING,
GUTHTHILA_PARSER_ERROR,
GUTHTHILA_PARSER_WARNING
} guththila_error_level;
enum guththila_error_codes
{
GUTHTHILA_ERROR_NONE =
0, GUTHTHILA_ERROR_NO_MEMORY,
GUTHTHILA_ERROR_INVALID_NULL_PARAMETER,
GUTHTHILA_ERROR_INVALID_ITERATOR_STATE,
GUTHTHILA_ERROR_INVALID_NODE_TYPE,
GUTHTHILA_STREAM_WRITER_ERROR_NOT_IN_GUTHTHILA_START_ELEMENT,
GUTHTHILA_STREAM_WRITER_ERROR_WRITING_TO_STREAM,
GUTHTHILA_STREAM_WRITER_ERROR_STREAM_STRUCT_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_LOCAL_NAME_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_PREFIX_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_namespace_t_NOT_DECLARED,
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_element_t_GUTHTHILA_stack_t_EMPTY,
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_STATE,
GUTHTHILA_STREAM_WRITER_ERROR_GUTHTHILA_COMMENT_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_GUTHTHILA_COMMENT,
GUTHTHILA_STREAM_WRITER_ERROR_PROCESSING_INSTRUCTION_TARGET_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_CDATA_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_CDATA,
GUTHTHILA_STREAM_WRITER_ERROR_DTD_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_ENTITY_REF_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_XML_VERSION,
GUTHTHILA_STREAM_WRITER_ERROR_TEXT_NULL,
GUTHTHILA_STREAM_WRITER_ERROR_ILLEGAL_PREFIX,
GUTHTHILA_STREAM_WRITER_ERROR_OUT_OF_MEMORY,
GUTHTHILA_STREAM_WRITER_ERROR_FILE_NOT_FOUND,
GUTHTHILA_STREAM_READER_ERROR_OUT_OF_MEMORY,
GUTHTHILA_ERROR_INVALID_ENCODING_DECLARATION,
GUTHTHILA_ERROR_UNEXPECTED_UTF16_EOF,
GUTHTHILA_ERROR_UNEXPECTED_EOF,
GUTHTHILA_ERROR_PROCESS_EQUAL,
GUTHTHILA_ERROR_INCORRECT_VERSION_INFO,
GUTHTHILA_ERROR_INCORRECT_XML_DECLARATION,
GUTHTHILA_ERROR_VERSION_INFO_NOT_FOUND,
GUTHTHILA_ERROR_ENCODING_DECLARATION_ERROR,
GUTHTHILA_ERROR_STANDALONE_ERROR_IN_YES,
GUTHTHILA_ERROR_STANDALONE_ERROR_IN_NO,
GUTHTHILA_ERROR_STANDALONE_ERROR_YES_OR_NO_NOT_AVAILABLE,
GUTHTHILA_ERROR_MISSING_GREATER_SIGN_IN_XML_DECLARATION,
GUTHTHILA_ERROR_INVALID_NAME_STARTING_CHARACTER,
GUTHTHILA_ERROR_QUOTES_NOT_FOUND_BEFORE_ATTRIBUTE_VALUE,
GUTHTHILA_ERROR_EMPTY_ELEMENT_NOT_CLOSED,
GUTHTHILA_ERROR_END_TAG_NOT_CLOSED,
GUTHTHILA_ERROR_MORE_HYPENS_OCCURED_IN_COMMENT,
GUTHTHILA_ERROR_TOKENIZE_ERROR,
GUTHTHILA_ERROR_INVALID_TOKEN_TYPE,
GUTHTHILA_ERROR_NULL_ATTRIBUTE_NAME,
GUTHTHILA_ERROR_NULL_ATTRIBUTE_VALUE,
GUTHTHILA_ERROR_NULL_ATTRIBUTE_PREFIX,
GUTHTHILA_ERROR_REQUESTED_NUMBER_GREATER_THAN_STACK_SIZE,
GUTHTHILA_WRITER_ERROR_EMPTY_ARGUMENTS,
GUTHTHILA_WRITER_ERROR_NON_EXSISTING_PREFIX,
GUTHTHILA_WRITER_ERROR_EMPTY_WRITER,
GUTHTHILA_WRITER_ERROR_NON_MATCHING_ELEMENTS,
GUTHTHILA_WRITER_ERROR_INVALID_BUFFER,
GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_NAME,
GUTHTHILA_WRITER_ERROR_XML_STRING_IN_NAME,
GUTHTHILA_WRITER_ERROR_EXCESS_HYPENS_IN_COMMENT,
GUTHTHILA_WRITER_ERROR_INVALID_CHAR_IN_ATTRIBUTE,
GUTHTHILA_WRITER_ERROR_NON_EXSISTING_URI,
GUTHTHILA_WRITER_ERROR_SAME_ATTRIBUTE_REPEAT,
GUTHTHILA_ERROR_ATTRIBUTE_FREE
};
EXTERN_C_END()
#endif /* */
|