errors.h
1 
22 #ifndef NDN_ERRORS_H
23 #define NDN_ERRORS_H
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 typedef enum {
30  NDN_ERROR_success = 0,
31  NDN_ERROR_element_of_value_is_not_a_decimal_digit,
32  NDN_ERROR_read_past_the_end_of_the_input,
33  NDN_ERROR_the_first_header_octet_may_not_be_zero,
34  NDN_ERROR_header_type_is_not_a_DTAG,
35  NDN_ERROR_did_not_get_the_expected_DTAG,
36  NDN_ERROR_did_not_get_the_expected_element_close,
37  NDN_ERROR_item_is_not_UDATA,
38  NDN_ERROR_header_type_is_out_of_range,
39  NDN_ERROR_encodeTypeAndValue_miscalculated_N_encoding_bytes,
40  NDN_ERROR_attempt_to_add_a_component_past_the_maximum_number_of_components_allowed_in_the_name,
41  NDN_ERROR_cannot_add_an_entry_past_the_maximum_number_of_entries_allowed_in_the_exclude,
42  NDN_ERROR_findElementEnd_unexpected_close_tag,
43  NDN_ERROR_cannot_store_more_header_bytes_than_the_size_of_headerBuffer,
44  NDN_ERROR_findElementEnd_cannot_read_header_type_and_value,
45  NDN_ERROR_findElementEnd_unrecognized_header_type,
46  NDN_ERROR_findElementEnd_unrecognized_state,
47  NDN_ERROR_DynamicUInt8Array_realloc_function_pointer_not_supplied,
48  NDN_ERROR_DynamicUInt8Array_realloc_failed,
49  NDN_ERROR_unrecognized_ndn_ExcludeType,
50  NDN_ERROR_unrecognized_ndn_ContentType,
51  NDN_ERROR_unrecognized_ndn_KeyLocatorType,
52  NDN_ERROR_unrecognized_ndn_KeyNameType,
53  NDN_ERROR_decodeKeyLocator_unrecognized_key_locator_type,
54  NDN_ERROR_unrecognized_ndn_SocketTransport,
55  NDN_ERROR_SocketTransport_error_in_getaddrinfo,
56  NDN_ERROR_SocketTransport_cannot_connect_to_socket,
57  NDN_ERROR_SocketTransport_socket_is_not_open,
58  NDN_ERROR_SocketTransport_error_in_send,
59  NDN_ERROR_SocketTransport_error_in_poll,
60  NDN_ERROR_SocketTransport_error_in_recv,
61  NDN_ERROR_SocketTransport_error_in_close,
62  NDN_ERROR_Name_component_does_not_begin_with_the_expected_marker,
63  NDN_ERROR_Time_functions_are_not_supported_by_the_standard_library,
64  NDN_ERROR_Calendar_time_value_out_of_range,
65  NDN_ERROR_Invalid_length_for_nonNegativeInteger,
66  NDN_ERROR_did_not_get_the_expected_TLV_type,
67  NDN_ERROR_TLV_length_exceeds_buffer_length,
68  NDN_ERROR_TLV_length_does_not_equal_total_length_of_nested_TLVs,
69  NDN_ERROR_decodeSignatureInfo_unrecognized_SignatureInfo_type,
70  NDN_ERROR_encodeSignatureInfo_unrecognized_SignatureType,
71  NDN_ERROR_Unsupported_answerOriginKind_bits_for_encoding_TLV_MustBeFresh,
72  NDN_ERROR_Unimplemented_operation,
73  NDN_ERROR_ElementReader_ElementListener_is_not_specified,
74  NDN_ERROR_ElementReader_The_incoming_packet_exceeds_the_maximum_limit_getMaxNdnPacketSize
75 } ndn_Error;
76 
82 char *ndn_getErrorString(int error);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif