Ion C
C library for Ion
ion_error_codes.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at:
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
12  * language governing permissions and limitations under the License.
13  */
14 
18 #ifdef ERROR_CODE
19 
20 /* IERR_EOF is the short form of IERR_EOF */
21 
22  ERROR_CODE( IERR_OK, 0 )
23  ERROR_CODE( IERR_BAD_HANDLE, 1 )
24  ERROR_CODE( IERR_INVALID_ARG, 2 )
25  ERROR_CODE( IERR_NO_MEMORY, 3 )
29  ERROR_CODE( IERR_EOF, 4 )
30 
34  ERROR_CODE( IERR_INVALID_STATE, 5 )
35  ERROR_CODE( IERR_TOO_MANY_ANNOTATIONS, 6 )
36  ERROR_CODE( IERR_UNRECOGNIZED_FLOAT, 7 )
37 
41  ERROR_CODE( IERR_NULL_VALUE, 8 )
42  ERROR_CODE( IERR_BUFFER_TOO_SMALL, 9 )
43  ERROR_CODE( IERR_INVALID_TIMESTAMP, 10 )
44  ERROR_CODE( IERR_INVALID_UNICODE_SEQUENCE, 12 )
45  ERROR_CODE( IERR_UNREAD_LIMIT_EXCEEDED, 13 )
46  ERROR_CODE( IERR_INVALID_TOKEN, 14 )
47  ERROR_CODE( IERR_INVALID_UTF8, 15 )
48  ERROR_CODE( IERR_LOOKAHEAD_OVERFLOW, 16 )
49  ERROR_CODE( IERR_BAD_BASE64_BLOB, 17 )
50  ERROR_CODE( IERR_TOKEN_TOO_LONG, 18 )
51  ERROR_CODE( IERR_INVALID_UTF8_CHAR, 19 )
52  ERROR_CODE( IERR_UNEXPECTED_EOF, 20 )
53  ERROR_CODE( IERR_INVALID_ESCAPE_SEQUENCE, 21 )
54 
58  ERROR_CODE( IERR_INVALID_SYNTAX, 22 )
59  ERROR_CODE( IERR_INVALID_TOKEN_CHAR, 23 )
60  ERROR_CODE( IERR_INVALID_SYMBOL, 24 )
61  ERROR_CODE( IERR_STACK_UNDERFLOW, 25 )
62  ERROR_CODE( IERR_INVALID_SYMBOL_LIST, 26 )
63  ERROR_CODE( IERR_PARSER_INTERNAL, 27 )
64  ERROR_CODE( IERR_INVALID_SYMBOL_TABLE, 28 )
65  ERROR_CODE( IERR_IS_IMMUTABLE, 29 )
66  ERROR_CODE( IERR_DUPLICATE_SYMBOL, 30 )
67  ERROR_CODE( IERR_DUPLICATE_SYMBOL_ID, 31 )
68  ERROR_CODE( IERR_NO_SUCH_ELEMENT, 32 )
69 
70  ERROR_CODE( IERR_INVALID_FIELDNAME, 33 )
71 
73  ERROR_CODE( IERR_INVALID_BINARY, 34 )
74  ERROR_CODE( IERR_IMPORT_NOT_FOUND, 35 )
75  ERROR_CODE( IERR_NUMERIC_OVERFLOW, 36 )
76  ERROR_CODE( IERR_INVALID_ION_VERSION, 37 )
77  ERROR_CODE( IERR_ENTRY_NOT_FOUND, 38 )
78  ERROR_CODE( IERR_CANT_FIND_FILE, 39 )
79  ERROR_CODE( IERR_STREAM_FAILED, 40 )
80  ERROR_CODE( IERR_KEY_ALREADY_EXISTS, 41 )
81  ERROR_CODE( IERR_KEY_NOT_FOUND, 42 )
82  ERROR_CODE( IERR_KEY_ADDED, 43 )
83  ERROR_CODE( IERR_HAS_LOCAL_SYMBOLS, 44 )
84  ERROR_CODE( IERR_NOT_A_SYMBOL_TABLE, 45 )
85  ERROR_CODE( IERR_MARK_NOT_SET, 46 )
86  ERROR_CODE( IERR_WRITE_ERROR, 47 )
87  ERROR_CODE( IERR_SEEK_ERROR, 48 )
88  ERROR_CODE( IERR_READ_ERROR, 49 )
89  ERROR_CODE( IERR_INTERNAL_ERROR, 50 )
90 
91  ERROR_CODE( IERR_NEW_LINE_IN_STRING, 51 )
92  ERROR_CODE( IERR_INVALID_LEADING_ZEROS, 52 )
93  ERROR_CODE( IERR_INVALID_LOB_TERMINATOR, 53 )
94 
95 
96 // if it was defined we undefine it now
97 #undef ERROR_CODE
98 
99 #endif