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_cannot_add_an_entry_past_the_maximum_number_of_entries_allowed_in_the_LpPacket,
43  NDN_ERROR_findElementEnd_unexpected_close_tag,
44  NDN_ERROR_cannot_store_more_header_bytes_than_the_size_of_headerBuffer,
45  NDN_ERROR_findElementEnd_cannot_read_header_type_and_value,
46  NDN_ERROR_findElementEnd_unrecognized_header_type,
47  NDN_ERROR_findElementEnd_unrecognized_state,
48  NDN_ERROR_DynamicUInt8Array_realloc_function_pointer_not_supplied,
49  NDN_ERROR_DynamicUInt8Array_realloc_failed,
50  NDN_ERROR_unrecognized_ndn_ExcludeType,
51  NDN_ERROR_unrecognized_ndn_ContentType,
52  NDN_ERROR_unrecognized_ndn_KeyLocatorType,
53  NDN_ERROR_unrecognized_ndn_KeyNameType,
54  NDN_ERROR_decodeKeyLocator_unrecognized_key_locator_type,
55  NDN_ERROR_unrecognized_ndn_SocketTransport,
56  NDN_ERROR_SocketTransport_error_in_getaddrinfo,
57  NDN_ERROR_SocketTransport_cannot_connect_to_socket,
58  NDN_ERROR_SocketTransport_socket_is_not_open,
59  NDN_ERROR_SocketTransport_error_in_send,
60  NDN_ERROR_SocketTransport_error_in_poll,
61  NDN_ERROR_SocketTransport_error_in_recv,
62  NDN_ERROR_SocketTransport_error_in_close,
63  NDN_ERROR_Name_component_does_not_begin_with_the_expected_marker,
64  NDN_ERROR_Time_functions_are_not_supported_by_the_standard_library,
65  NDN_ERROR_Calendar_time_value_out_of_range,
66  NDN_ERROR_Invalid_length_for_nonNegativeInteger,
67  NDN_ERROR_did_not_get_the_expected_TLV_type,
68  NDN_ERROR_TLV_length_exceeds_buffer_length,
69  NDN_ERROR_TLV_length_does_not_equal_total_length_of_nested_TLVs,
70  NDN_ERROR_decodeSignatureInfo_unrecognized_SignatureInfo_type,
71  NDN_ERROR_encodeSignatureInfo_unrecognized_SignatureType,
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_Interest_has_a_selected_delegation_but_no_link_object,
76  NDN_ERROR_The_Generic_signature_encoding_is_not_a_valid_NDN_TLV_SignatureInfo
77 } ndn_Error;
78 
84 const char *
85 ndn_getErrorString(int error);
86 
87 #ifdef __cplusplus
88 }
89 #endif
90 
91 #endif