3 * Copyright (c) 2020 Project CHIP Authors
4 * Copyright (c) 2013-2017 Nest Labs, Inc.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 * This file defines error constants for the CHIP core
24 * Error types, ranges, and mappings overrides may be made by
25 * defining the appropriate CHIP_CONFIG_* or _CHIP_CONFIG_*
28 * NOTE WELL: On some platforms, this header is included by C-language programs.
34 #include <core/CHIPConfig.h>
41 * This defines the CHIP error code for success or no error.
42 * This value may be configured via #CHIP_CONFIG_NO_ERROR."
45 #define CHIP_NO_ERROR CHIP_CONFIG_NO_ERROR
51 * This defines the bottom or minimum CHIP error number range.
52 * This value may be configured via #CHIP_CONFIG_ERROR_MIN.
55 #define CHIP_ERROR_MIN CHIP_CONFIG_ERROR_MIN
61 * This defines the top or maximum CHIP error number range.
62 * This value may be configured via #CHIP_CONFIG_ERROR_MAX.
65 #define CHIP_ERROR_MAX CHIP_CONFIG_ERROR_MAX
71 * This defines a mapping function for CHIP errors that allows
72 * mapping such errors into a platform- or system-specific range.
73 * This function may be configured via #_CHIP_CONFIG_ERROR(e).
75 * @param[in] e The CHIP error to map.
77 * @return The mapped CHIP error.
81 #define _CHIP_ERROR(e) _CHIP_CONFIG_ERROR(e)
84 * The basic type for all CHIP errors.
87 * This is defined to a platform- or system-specific type.
90 typedef CHIP_CONFIG_ERROR_TYPE CHIP_ERROR;
93 * @name Error Definitions
99 * @def CHIP_ERROR_TOO_MANY_CONNECTIONS
102 * The attempt to allocate a connection object failed because too many
106 #define CHIP_ERROR_TOO_MANY_CONNECTIONS _CHIP_ERROR(0)
109 * @def CHIP_ERROR_SENDING_BLOCKED
112 * A message exceeds the sent limit.
115 #define CHIP_ERROR_SENDING_BLOCKED _CHIP_ERROR(1)
118 * @def CHIP_ERROR_CONNECTION_ABORTED
121 * A connection has been aborted.
124 #define CHIP_ERROR_CONNECTION_ABORTED _CHIP_ERROR(2)
127 * @def CHIP_ERROR_INCORRECT_STATE
130 * An unexpected state was encountered.
133 #define CHIP_ERROR_INCORRECT_STATE _CHIP_ERROR(3)
136 * @def CHIP_ERROR_MESSAGE_TOO_LONG
139 * A message is too long.
142 #define CHIP_ERROR_MESSAGE_TOO_LONG _CHIP_ERROR(4)
145 * @def CHIP_ERROR_UNSUPPORTED_EXCHANGE_VERSION
148 * An exchange version is not supported.
151 #define CHIP_ERROR_UNSUPPORTED_EXCHANGE_VERSION _CHIP_ERROR(5)
154 * @def CHIP_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS
157 * The attempt to register an unsolicited message handler failed because the
158 * unsolicited message handler pool is full.
161 #define CHIP_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS _CHIP_ERROR(6)
164 * @def CHIP_ERROR_NO_UNSOLICITED_MESSAGE_HANDLER
167 * The attempt to unregister an unsolicited message handler failed because
168 * the target handler was not found in the unsolicited message handler pool.
171 #define CHIP_ERROR_NO_UNSOLICITED_MESSAGE_HANDLER _CHIP_ERROR(7)
174 * @def CHIP_ERROR_NO_CONNECTION_HANDLER
177 * No callback has been registered for handling a connection.
180 #define CHIP_ERROR_NO_CONNECTION_HANDLER _CHIP_ERROR(8)
183 * @def CHIP_ERROR_TOO_MANY_PEER_NODES
186 * The number of peer nodes exceeds the maximum limit of a local node.
189 #define CHIP_ERROR_TOO_MANY_PEER_NODES _CHIP_ERROR(9)
192 * @def CHIP_ERROR_NO_MEMORY
195 * The attempt to allocate a buffer or object failed due to a lack of memory.
198 #define CHIP_ERROR_NO_MEMORY _CHIP_ERROR(11)
201 * @def CHIP_ERROR_NO_MESSAGE_HANDLER
204 * No callback has been registered for handling a message.
207 #define CHIP_ERROR_NO_MESSAGE_HANDLER _CHIP_ERROR(12)
210 * @def CHIP_ERROR_MESSAGE_INCOMPLETE
213 * A message is incomplete.
216 #define CHIP_ERROR_MESSAGE_INCOMPLETE _CHIP_ERROR(13)
219 * @def CHIP_ERROR_DATA_NOT_ALIGNED
222 * The data is not aligned.
225 #define CHIP_ERROR_DATA_NOT_ALIGNED _CHIP_ERROR(14)
228 * @def CHIP_ERROR_UNKNOWN_KEY_TYPE
231 * The encryption key type is unknown.
234 #define CHIP_ERROR_UNKNOWN_KEY_TYPE _CHIP_ERROR(15)
237 * @def CHIP_ERROR_KEY_NOT_FOUND
240 * The encryption key is not found.
243 #define CHIP_ERROR_KEY_NOT_FOUND _CHIP_ERROR(16)
246 * @def CHIP_ERROR_WRONG_ENCRYPTION_TYPE
249 * The encryption type is incorrect for the specified key.
252 #define CHIP_ERROR_WRONG_ENCRYPTION_TYPE _CHIP_ERROR(17)
255 * @def CHIP_ERROR_TOO_MANY_KEYS
258 * The attempt to allocate a key failed because the number of active keys
259 * exceeds the maximum limit.
262 #define CHIP_ERROR_TOO_MANY_KEYS _CHIP_ERROR(18)
265 * @def CHIP_ERROR_INTEGRITY_CHECK_FAILED
268 * The integrity check in the message does not match the expected integrity
272 #define CHIP_ERROR_INTEGRITY_CHECK_FAILED _CHIP_ERROR(19)
275 * @def CHIP_ERROR_INVALID_SIGNATURE
281 #define CHIP_ERROR_INVALID_SIGNATURE _CHIP_ERROR(20)
284 * @def CHIP_ERROR_UNSUPPORTED_MESSAGE_VERSION
287 * A message version is unsupported.
290 #define CHIP_ERROR_UNSUPPORTED_MESSAGE_VERSION _CHIP_ERROR(21)
293 * @def CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE
296 * An encryption type is unsupported.
299 #define CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE _CHIP_ERROR(22)
302 * @def CHIP_ERROR_UNSUPPORTED_SIGNATURE_TYPE
305 * A signature type is unsupported.
308 #define CHIP_ERROR_UNSUPPORTED_SIGNATURE_TYPE _CHIP_ERROR(23)
311 * @def CHIP_ERROR_INVALID_MESSAGE_LENGTH
314 * A message length is invalid.
317 #define CHIP_ERROR_INVALID_MESSAGE_LENGTH _CHIP_ERROR(24)
320 * @def CHIP_ERROR_BUFFER_TOO_SMALL
323 * A buffer is too small.
326 #define CHIP_ERROR_BUFFER_TOO_SMALL _CHIP_ERROR(25)
329 * @def CHIP_ERROR_DUPLICATE_KEY_ID
332 * A key id is duplicate.
335 #define CHIP_ERROR_DUPLICATE_KEY_ID _CHIP_ERROR(26)
338 * @def CHIP_ERROR_WRONG_KEY_TYPE
341 * A key type does not match the expected key type.
344 #define CHIP_ERROR_WRONG_KEY_TYPE _CHIP_ERROR(27)
347 * @def CHIP_ERROR_WELL_UNINITIALIZED
350 * A requested object is uninitialized.
353 #define CHIP_ERROR_WELL_UNINITIALIZED _CHIP_ERROR(28)
356 * @def CHIP_ERROR_WELL_EMPTY
359 * A requested object is empty.
362 #define CHIP_ERROR_WELL_EMPTY _CHIP_ERROR(29)
365 * @def CHIP_ERROR_INVALID_STRING_LENGTH
368 * A string length is invalid.
371 #define CHIP_ERROR_INVALID_STRING_LENGTH _CHIP_ERROR(30)
374 * @def CHIP_ERROR_INVALID_LIST_LENGTH
377 * A list length is invalid.
380 #define CHIP_ERROR_INVALID_LIST_LENGTH _CHIP_ERROR(31)
383 * @def CHIP_ERROR_INVALID_INTEGRITY_TYPE
386 * An integrity type is invalid.
389 #define CHIP_ERROR_INVALID_INTEGRITY_TYPE _CHIP_ERROR(32)
392 * @def CHIP_END_OF_TLV
395 * The end of a TLV encoding,
396 * or the end of a TLV container element has been reached.
399 #define CHIP_END_OF_TLV _CHIP_ERROR(33)
402 * @def CHIP_ERROR_TLV_UNDERRUN
405 * The TLV encoding ended prematurely.
408 #define CHIP_ERROR_TLV_UNDERRUN _CHIP_ERROR(34)
411 * @def CHIP_ERROR_INVALID_TLV_ELEMENT
414 * A TLV element is invalid.
417 #define CHIP_ERROR_INVALID_TLV_ELEMENT _CHIP_ERROR(35)
420 * @def CHIP_ERROR_INVALID_TLV_TAG
423 * A TLV tag is invalid.
426 #define CHIP_ERROR_INVALID_TLV_TAG _CHIP_ERROR(36)
429 * @def CHIP_ERROR_UNKNOWN_IMPLICIT_TLV_TAG
432 * An implicitly encoded TLV tag was encountered,
433 * but an implicit profile id has not been defined.
436 #define CHIP_ERROR_UNKNOWN_IMPLICIT_TLV_TAG _CHIP_ERROR(37)
439 * @def CHIP_ERROR_WRONG_TLV_TYPE
442 * A TLV type is wrong.
445 #define CHIP_ERROR_WRONG_TLV_TYPE _CHIP_ERROR(38)
448 * @def CHIP_ERROR_TLV_CONTAINER_OPEN
451 * A TLV container is unexpectedly open.
454 #define CHIP_ERROR_TLV_CONTAINER_OPEN _CHIP_ERROR(39)
457 * @def CHIP_ERROR_INVALID_TRANSFER_MODE
460 * A transfer mode is invalid.
463 #define CHIP_ERROR_INVALID_TRANSFER_MODE _CHIP_ERROR(40)
466 * @def CHIP_ERROR_INVALID_PROFILE_ID
469 * A profile id is invalid.
472 #define CHIP_ERROR_INVALID_PROFILE_ID _CHIP_ERROR(41)
475 * @def CHIP_ERROR_INVALID_MESSAGE_TYPE
478 * A message type is invalid.
481 #define CHIP_ERROR_INVALID_MESSAGE_TYPE _CHIP_ERROR(42)
484 * @def CHIP_ERROR_UNEXPECTED_TLV_ELEMENT
487 * An unexpected TLV element was encountered.
490 #define CHIP_ERROR_UNEXPECTED_TLV_ELEMENT _CHIP_ERROR(43)
493 * @def CHIP_ERROR_STATUS_REPORT_RECEIVED
496 * A status report is received from a peer node.
499 #define CHIP_ERROR_STATUS_REPORT_RECEIVED _CHIP_ERROR(44)
502 * @def CHIP_ERROR_NOT_IMPLEMENTED
505 * A requested function or feature is not implemented.
508 #define CHIP_ERROR_NOT_IMPLEMENTED _CHIP_ERROR(45)
511 * @def CHIP_ERROR_INVALID_ADDRESS
514 * An address is invalid.
517 #define CHIP_ERROR_INVALID_ADDRESS _CHIP_ERROR(46)
520 * @def CHIP_ERROR_INVALID_ARGUMENT
523 * An argument is invalid.
526 #define CHIP_ERROR_INVALID_ARGUMENT _CHIP_ERROR(47)
529 * @def CHIP_ERROR_INVALID_PATH_LIST
532 * A TLV path list is invalid.
535 #define CHIP_ERROR_INVALID_PATH_LIST _CHIP_ERROR(48)
538 * @def CHIP_ERROR_INVALID_DATA_LIST
541 * A TLV data list is invalid.
544 #define CHIP_ERROR_INVALID_DATA_LIST _CHIP_ERROR(49)
547 * @def CHIP_ERROR_TIMEOUT
550 * A request timed out.
553 #define CHIP_ERROR_TIMEOUT _CHIP_ERROR(50)
556 * @def CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR
559 * A device descriptor is invalid.
562 #define CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR _CHIP_ERROR(51)
565 * @def CHIP_ERROR_UNSUPPORTED_DEVICE_DESCRIPTOR_VERSION
568 * A device descriptor version is unsupported.
571 #define CHIP_ERROR_UNSUPPORTED_DEVICE_DESCRIPTOR_VERSION _CHIP_ERROR(52)
574 * @def CHIP_END_OF_INPUT
580 #define CHIP_END_OF_INPUT _CHIP_ERROR(53)
583 * @def CHIP_ERROR_RATE_LIMIT_EXCEEDED
586 * A rate limit is exceeded.
589 #define CHIP_ERROR_RATE_LIMIT_EXCEEDED _CHIP_ERROR(54)
592 * @def CHIP_ERROR_SECURITY_MANAGER_BUSY
595 * A security manager is busy.
598 #define CHIP_ERROR_SECURITY_MANAGER_BUSY _CHIP_ERROR(55)
601 * @def CHIP_ERROR_INVALID_PASE_PARAMETER
604 * A PASE parameter is invalid.
607 #define CHIP_ERROR_INVALID_PASE_PARAMETER _CHIP_ERROR(56)
610 * @def CHIP_ERROR_PASE_SUPPORTS_ONLY_CONFIG1
613 * PASE supports only config1.
616 #define CHIP_ERROR_PASE_SUPPORTS_ONLY_CONFIG1 _CHIP_ERROR(57)
619 * @def CHIP_ERROR_KEY_CONFIRMATION_FAILED
622 * A key confirmation failed.
625 #define CHIP_ERROR_KEY_CONFIRMATION_FAILED _CHIP_ERROR(58)
628 * @def CHIP_ERROR_INVALID_USE_OF_SESSION_KEY
631 * A use of session key is invalid.
634 #define CHIP_ERROR_INVALID_USE_OF_SESSION_KEY _CHIP_ERROR(59)
637 * @def CHIP_ERROR_CONNECTION_CLOSED_UNEXPECTEDLY
640 * A connection is closed unexpectedly.
643 #define CHIP_ERROR_CONNECTION_CLOSED_UNEXPECTEDLY _CHIP_ERROR(60)
646 * @def CHIP_ERROR_MISSING_TLV_ELEMENT
649 * A TLV element is missing.
652 #define CHIP_ERROR_MISSING_TLV_ELEMENT _CHIP_ERROR(61)
655 * @def CHIP_ERROR_RANDOM_DATA_UNAVAILABLE
658 * Secure random data is not available.
661 #define CHIP_ERROR_RANDOM_DATA_UNAVAILABLE _CHIP_ERROR(62)
664 * @def CHIP_ERROR_UNSUPPORTED_HOST_PORT_ELEMENT
667 * A type in host/port list is unsupported.
670 #define CHIP_ERROR_UNSUPPORTED_HOST_PORT_ELEMENT _CHIP_ERROR(63)
673 * @def CHIP_ERROR_INVALID_HOST_SUFFIX_INDEX
676 * A suffix index in host/port list is invalid.
679 #define CHIP_ERROR_INVALID_HOST_SUFFIX_INDEX _CHIP_ERROR(64)
682 * @def CHIP_ERROR_HOST_PORT_LIST_EMPTY
685 * A host/port list is empty.
688 #define CHIP_ERROR_HOST_PORT_LIST_EMPTY _CHIP_ERROR(65)
691 * @def CHIP_ERROR_UNSUPPORTED_AUTH_MODE
694 * An authentication mode is unsupported.
697 #define CHIP_ERROR_UNSUPPORTED_AUTH_MODE _CHIP_ERROR(66)
700 * @def CHIP_ERROR_INVALID_SERVICE_EP
703 * A service endpoint is invalid.
706 #define CHIP_ERROR_INVALID_SERVICE_EP _CHIP_ERROR(67)
709 * @def CHIP_ERROR_INVALID_DIRECTORY_ENTRY_TYPE
712 * A directory entry type is unknown.
715 #define CHIP_ERROR_INVALID_DIRECTORY_ENTRY_TYPE _CHIP_ERROR(68)
718 * @def CHIP_ERROR_FORCED_RESET
721 * A service manager is forced to reset.
724 #define CHIP_ERROR_FORCED_RESET _CHIP_ERROR(69)
727 * @def CHIP_ERROR_NO_ENDPOINT
730 * No endpoint is available.
733 #define CHIP_ERROR_NO_ENDPOINT _CHIP_ERROR(70)
736 * @def CHIP_ERROR_INVALID_DESTINATION_NODE_ID
739 * A destination node id is invalid.
742 #define CHIP_ERROR_INVALID_DESTINATION_NODE_ID _CHIP_ERROR(71)
745 * @def CHIP_ERROR_NOT_CONNECTED
748 * The operation cannot be performed because the underlying object is not
752 #define CHIP_ERROR_NOT_CONNECTED _CHIP_ERROR(72)
755 * @def CHIP_ERROR_NO_SW_UPDATE_AVAILABLE
758 * No software update is available.
761 #define CHIP_ERROR_NO_SW_UPDATE_AVAILABLE _CHIP_ERROR(73)
764 * @def CHIP_ERROR_CA_CERT_NOT_FOUND
767 * CA certificate is not found.
770 #define CHIP_ERROR_CA_CERT_NOT_FOUND _CHIP_ERROR(74)
773 * @def CHIP_ERROR_CERT_PATH_LEN_CONSTRAINT_EXCEEDED
776 * A certificate path length exceeds the constraint.
779 #define CHIP_ERROR_CERT_PATH_LEN_CONSTRAINT_EXCEEDED _CHIP_ERROR(75)
782 * @def CHIP_ERROR_CERT_PATH_TOO_LONG
785 * A certificate path is too long.
788 #define CHIP_ERROR_CERT_PATH_TOO_LONG _CHIP_ERROR(76)
791 * @def CHIP_ERROR_CERT_USAGE_NOT_ALLOWED
794 * A requested certificate usage is not allowed.
797 #define CHIP_ERROR_CERT_USAGE_NOT_ALLOWED _CHIP_ERROR(77)
800 * @def CHIP_ERROR_CERT_EXPIRED
803 * A certificate expired.
806 #define CHIP_ERROR_CERT_EXPIRED _CHIP_ERROR(78)
809 * @def CHIP_ERROR_CERT_NOT_VALID_YET
812 * A certificate is not valid yet.
815 #define CHIP_ERROR_CERT_NOT_VALID_YET _CHIP_ERROR(79)
818 * @def CHIP_ERROR_UNSUPPORTED_CERT_FORMAT
821 * A certificate format is unsupported.
824 #define CHIP_ERROR_UNSUPPORTED_CERT_FORMAT _CHIP_ERROR(80)
827 * @def CHIP_ERROR_UNSUPPORTED_ELLIPTIC_CURVE
830 * An elliptic curve is unsupported.
833 #define CHIP_ERROR_UNSUPPORTED_ELLIPTIC_CURVE _CHIP_ERROR(81)
836 * @def CHIP_CERT_NOT_USED
839 * A certificate was not used during the chain validation.
842 #define CHIP_CERT_NOT_USED _CHIP_ERROR(82)
845 * @def CHIP_ERROR_CERT_NOT_FOUND
848 * A certificate is not found.
851 #define CHIP_ERROR_CERT_NOT_FOUND _CHIP_ERROR(83)
854 * @def CHIP_ERROR_INVALID_CASE_PARAMETER
857 * A CASE parameter is invalid.
860 #define CHIP_ERROR_INVALID_CASE_PARAMETER _CHIP_ERROR(84)
863 * @def CHIP_ERROR_UNSUPPORTED_CASE_CONFIGURATION
866 * A CASE configuration is unsupported.
869 #define CHIP_ERROR_UNSUPPORTED_CASE_CONFIGURATION _CHIP_ERROR(85)
872 * @def CHIP_ERROR_CERT_LOAD_FAILED
875 * A certificate load failed.
878 #define CHIP_ERROR_CERT_LOAD_FAILED _CHIP_ERROR(86)
881 * @def CHIP_ERROR_CERT_NOT_TRUSTED
884 * A certificate is not trusted.
887 #define CHIP_ERROR_CERT_NOT_TRUSTED _CHIP_ERROR(87)
890 * @def CHIP_ERROR_INVALID_ACCESS_TOKEN
893 * An access token is invalid.
896 #define CHIP_ERROR_INVALID_ACCESS_TOKEN _CHIP_ERROR(88)
899 * @def CHIP_ERROR_WRONG_CERT_SUBJECT
902 * A certificate subject is wrong.
905 #define CHIP_ERROR_WRONG_CERT_SUBJECT _CHIP_ERROR(89)
908 #define CHIP_ERROR_WRONG_CERTIFICATE_SUBJECT CHIP_ERROR_WRONG_CERT_SUBJECT
911 * @def CHIP_ERROR_INVALID_PROVISIONING_BUNDLE
914 * A provisioning bundle is invalid.
917 #define CHIP_ERROR_INVALID_PROVISIONING_BUNDLE _CHIP_ERROR(90)
920 * @def CHIP_ERROR_PROVISIONING_BUNDLE_DECRYPTION_ERROR
923 * A provision bundle encountered a decryption error.
926 #define CHIP_ERROR_PROVISIONING_BUNDLE_DECRYPTION_ERROR _CHIP_ERROR(91)
929 * @def CHIP_ERROR_WRONG_NODE_ID
932 * A node id is wrong.
935 #define CHIP_ERROR_WRONG_NODE_ID _CHIP_ERROR(92)
938 * @def CHIP_ERROR_CONN_ACCEPTED_ON_WRONG_PORT
941 * A connection is accepted on a wrong port.
944 #define CHIP_ERROR_CONN_ACCEPTED_ON_WRONG_PORT _CHIP_ERROR(93)
947 * @def CHIP_ERROR_CALLBACK_REPLACED
950 * An application callback has been replaced.
953 #define CHIP_ERROR_CALLBACK_REPLACED _CHIP_ERROR(94)
956 * @def CHIP_ERROR_NO_CASE_AUTH_DELEGATE
959 * No CASE authentication delegate is set.
962 #define CHIP_ERROR_NO_CASE_AUTH_DELEGATE _CHIP_ERROR(95)
965 * @def CHIP_ERROR_DEVICE_LOCATE_TIMEOUT
968 * The attempt to locate device timed out.
971 #define CHIP_ERROR_DEVICE_LOCATE_TIMEOUT _CHIP_ERROR(96)
974 * @def CHIP_ERROR_DEVICE_CONNECT_TIMEOUT
977 * The attempt to connect device timed out.
980 #define CHIP_ERROR_DEVICE_CONNECT_TIMEOUT _CHIP_ERROR(97)
983 * @def CHIP_ERROR_DEVICE_AUTH_TIMEOUT
986 * The attempt to authenticate device timed out.
989 #define CHIP_ERROR_DEVICE_AUTH_TIMEOUT _CHIP_ERROR(98)
992 * @def CHIP_ERROR_MESSAGE_NOT_ACKNOWLEDGED
995 * A message is not acknowledged after max retries.
998 #define CHIP_ERROR_MESSAGE_NOT_ACKNOWLEDGED _CHIP_ERROR(99)
1001 * @def CHIP_ERROR_RETRANS_TABLE_FULL
1004 * A retransmission table is already full.
1007 #define CHIP_ERROR_RETRANS_TABLE_FULL _CHIP_ERROR(100)
1010 * @def CHIP_ERROR_INVALID_ACK_ID
1013 * An acknowledgment id is invalid.
1016 #define CHIP_ERROR_INVALID_ACK_ID _CHIP_ERROR(101)
1019 * @def CHIP_ERROR_SEND_THROTTLED
1022 * A send is throttled.
1025 #define CHIP_ERROR_SEND_THROTTLED _CHIP_ERROR(102)
1028 * @def CHIP_ERROR_WRONG_MSG_VERSION_FOR_EXCHANGE
1031 * A message version is not supported by the current exchange context.
1034 #define CHIP_ERROR_WRONG_MSG_VERSION_FOR_EXCHANGE _CHIP_ERROR(103)
1037 * @def CHIP_ERROR_TRANSACTION_CANCELED
1040 * A transaction is cancelled.
1043 #define CHIP_ERROR_TRANSACTION_CANCELED _CHIP_ERROR(104)
1046 * @def CHIP_ERROR_LISTENER_ALREADY_STARTED
1049 * A listener has already started.
1052 #define CHIP_ERROR_LISTENER_ALREADY_STARTED _CHIP_ERROR(105)
1055 * @def CHIP_ERROR_LISTENER_ALREADY_STOPPED
1058 * A listener has already stopped.
1061 #define CHIP_ERROR_LISTENER_ALREADY_STOPPED _CHIP_ERROR(106)
1064 * @def CHIP_ERROR_UNKNOWN_TOPIC
1067 * A topic ID was unknown to the recipient.
1070 #define CHIP_ERROR_UNKNOWN_TOPIC _CHIP_ERROR(107)
1073 * @def CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE
1076 * A CHIP feature is unsupported.
1079 #define CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE _CHIP_ERROR(108)
1082 * @def CHIP_ERROR_PASE_RECONFIGURE_REQUIRED
1085 * PASE is required to reconfigure.
1088 #define CHIP_ERROR_PASE_RECONFIGURE_REQUIRED _CHIP_ERROR(109)
1091 * @def CHIP_ERROR_INVALID_PASE_CONFIGURATION
1094 * A PASE configuration is invalid.
1097 #define CHIP_ERROR_INVALID_PASE_CONFIGURATION _CHIP_ERROR(110)
1100 * @def CHIP_ERROR_NO_COMMON_PASE_CONFIGURATIONS
1103 * No PASE configuration is in common.
1106 #define CHIP_ERROR_NO_COMMON_PASE_CONFIGURATIONS _CHIP_ERROR(111)
1109 * @def CHIP_ERROR_UNSOLICITED_MSG_NO_ORIGINATOR
1112 * An unsolicited message with the originator bit clear.
1115 #define CHIP_ERROR_UNSOLICITED_MSG_NO_ORIGINATOR _CHIP_ERROR(112)
1118 * @def CHIP_ERROR_INVALID_FABRIC_ID
1121 * A fabric id is invalid.
1124 #define CHIP_ERROR_INVALID_FABRIC_ID _CHIP_ERROR(113)
1127 * @def CHIP_ERROR_DRBG_ENTROPY_SOURCE_FAILED
1130 * DRBG entropy source failed to generate entropy data.
1133 #define CHIP_ERROR_DRBG_ENTROPY_SOURCE_FAILED _CHIP_ERROR(117)
1136 * @def CHIP_ERROR_TLV_TAG_NOT_FOUND
1139 * A specified TLV tag was not found.
1142 #define CHIP_ERROR_TLV_TAG_NOT_FOUND _CHIP_ERROR(118)
1145 * @def CHIP_ERROR_INVALID_TOKENPAIRINGBUNDLE
1148 * A token pairing bundle is invalid.
1151 #define CHIP_ERROR_INVALID_TOKENPAIRINGBUNDLE _CHIP_ERROR(119)
1154 * @def CHIP_ERROR_UNSUPPORTED_TOKENPAIRINGBUNDLE_VERSION
1157 * A token pairing bundle is invalid.
1160 #define CHIP_ERROR_UNSUPPORTED_TOKENPAIRINGBUNDLE_VERSION _CHIP_ERROR(120)
1163 * @def CHIP_ERROR_NO_TAKE_AUTH_DELEGATE
1166 * No TAKE authentication delegate is set.
1169 #define CHIP_ERROR_NO_TAKE_AUTH_DELEGATE _CHIP_ERROR(121)
1172 * @def CHIP_ERROR_TAKE_RECONFIGURE_REQUIRED
1175 * TAKE requires a reconfigure.
1178 #define CHIP_ERROR_TAKE_RECONFIGURE_REQUIRED _CHIP_ERROR(122)
1181 * @def CHIP_ERROR_TAKE_REAUTH_POSSIBLE
1184 * TAKE can do a reauthentication.
1187 #define CHIP_ERROR_TAKE_REAUTH_POSSIBLE _CHIP_ERROR(123)
1190 * @def CHIP_ERROR_INVALID_TAKE_PARAMETER
1193 * Received an invalid TAKE paramter.
1196 #define CHIP_ERROR_INVALID_TAKE_PARAMETER _CHIP_ERROR(124)
1199 * @def CHIP_ERROR_UNSUPPORTED_TAKE_CONFIGURATION
1202 * This configuration is not supported by TAKE.
1205 #define CHIP_ERROR_UNSUPPORTED_TAKE_CONFIGURATION _CHIP_ERROR(125)
1208 * @def CHIP_ERROR_TAKE_TOKEN_IDENTIFICATION_FAILED
1211 * The TAKE Token Identification failed.
1214 #define CHIP_ERROR_TAKE_TOKEN_IDENTIFICATION_FAILED _CHIP_ERROR(126)
1217 * @def CHIP_ERROR_KEY_NOT_FOUND_FROM_PEER
1220 * The encryption key is not found error received from a peer node.
1223 #define CHIP_ERROR_KEY_NOT_FOUND_FROM_PEER _CHIP_ERROR(127)
1226 * @def CHIP_ERROR_WRONG_ENCRYPTION_TYPE_FROM_PEER
1229 * The wrong encryption type error received from a peer node.
1232 #define CHIP_ERROR_WRONG_ENCRYPTION_TYPE_FROM_PEER _CHIP_ERROR(128)
1235 * @def CHIP_ERROR_UNKNOWN_KEY_TYPE_FROM_PEER
1238 * The unknown key type error received from a peer node.
1241 #define CHIP_ERROR_UNKNOWN_KEY_TYPE_FROM_PEER _CHIP_ERROR(129)
1244 * @def CHIP_ERROR_INVALID_USE_OF_SESSION_KEY_FROM_PEER
1247 * The invalid use of session key error received from a peer node.
1250 #define CHIP_ERROR_INVALID_USE_OF_SESSION_KEY_FROM_PEER _CHIP_ERROR(130)
1253 * @def CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE_FROM_PEER
1256 * An unsupported encryption type error received from a peer node.
1259 #define CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE_FROM_PEER _CHIP_ERROR(131)
1262 * @def CHIP_ERROR_INTERNAL_KEY_ERROR_FROM_PEER
1265 * The internal key error received from a peer node.
1268 #define CHIP_ERROR_INTERNAL_KEY_ERROR_FROM_PEER _CHIP_ERROR(132)
1271 * @def CHIP_ERROR_INVALID_KEY_ID
1274 * A key id is invalid.
1277 #define CHIP_ERROR_INVALID_KEY_ID _CHIP_ERROR(133)
1280 * @def CHIP_ERROR_INVALID_TIME
1283 * Time has invalid value.
1286 #define CHIP_ERROR_INVALID_TIME _CHIP_ERROR(134)
1289 * @def CHIP_ERROR_LOCKING_FAILURE
1292 * Failure to acquire or release an OS provided mutex.
1295 #define CHIP_ERROR_LOCKING_FAILURE _CHIP_ERROR(135)
1298 * @def CHIP_ERROR_UNSUPPORTED_PASSCODE_CONFIG
1301 * A passcode encryption configuration is unsupported.
1304 #define CHIP_ERROR_UNSUPPORTED_PASSCODE_CONFIG _CHIP_ERROR(136)
1307 * @def CHIP_ERROR_PASSCODE_AUTHENTICATION_FAILED
1310 * The CHIP passcode authentication failed.
1313 #define CHIP_ERROR_PASSCODE_AUTHENTICATION_FAILED _CHIP_ERROR(137)
1316 * @def CHIP_ERROR_PASSCODE_FINGERPRINT_FAILED
1319 * The CHIP passcode fingerprint failed.
1322 #define CHIP_ERROR_PASSCODE_FINGERPRINT_FAILED _CHIP_ERROR(138)
1325 * @def CHIP_ERROR_SERIALIZATION_ELEMENT_NULL
1328 * The element of the struct is null.
1331 #define CHIP_ERROR_SERIALIZATION_ELEMENT_NULL _CHIP_ERROR(139)
1334 * @def CHIP_ERROR_WRONG_CERT_SIGNATURE_ALGORITHM
1337 * The certificate was not signed using the required signature algorithm.
1340 #define CHIP_ERROR_WRONG_CERT_SIGNATURE_ALGORITHM _CHIP_ERROR(140)
1343 * @def CHIP_ERROR_WRONG_CHIP_SIGNATURE_ALGORITHM
1346 * The CHIP signature was not signed using the required signature algorithm.
1349 #define CHIP_ERROR_WRONG_CHIP_SIGNATURE_ALGORITHM _CHIP_ERROR(141)
1352 * @def CHIP_ERROR_SCHEMA_MISMATCH
1355 * A mismatch in schema was encountered.
1358 #define CHIP_ERROR_SCHEMA_MISMATCH _CHIP_ERROR(142)
1361 * @def CHIP_ERROR_INVALID_INTEGER_VALUE
1364 * An integer does not have the kind of value we expect.
1367 #define CHIP_ERROR_INVALID_INTEGER_VALUE _CHIP_ERROR(143)
1370 * @def CHIP_ERROR_CASE_RECONFIG_REQUIRED
1373 * CASE is required to reconfigure.
1376 #define CHIP_ERROR_CASE_RECONFIG_REQUIRED _CHIP_ERROR(144)
1379 * @def CHIP_ERROR_TOO_MANY_CASE_RECONFIGURATIONS
1382 * Too many CASE reconfigurations were received.
1385 #define CHIP_ERROR_TOO_MANY_CASE_RECONFIGURATIONS _CHIP_ERROR(145)
1388 * @def CHIP_ERROR_BAD_REQUEST
1391 * The request cannot be processed or fulfilled
1394 #define CHIP_ERROR_BAD_REQUEST _CHIP_ERROR(146)
1397 * @def CHIP_ERROR_INVALID_MESSAGE_FLAG
1400 * One or more message flags have invalid value.
1403 #define CHIP_ERROR_INVALID_MESSAGE_FLAG _CHIP_ERROR(147)
1406 * @def CHIP_ERROR_KEY_EXPORT_RECONFIGURE_REQUIRED
1409 * Key export protocol required to reconfigure.
1412 #define CHIP_ERROR_KEY_EXPORT_RECONFIGURE_REQUIRED _CHIP_ERROR(148)
1415 * @def CHIP_ERROR_INVALID_KEY_EXPORT_CONFIGURATION
1418 * A key export protocol configuration is invalid.
1421 #define CHIP_ERROR_INVALID_KEY_EXPORT_CONFIGURATION _CHIP_ERROR(149)
1424 * @def CHIP_ERROR_NO_COMMON_KEY_EXPORT_CONFIGURATIONS
1427 * No key export protocol configuration is in common.
1430 #define CHIP_ERROR_NO_COMMON_KEY_EXPORT_CONFIGURATIONS _CHIP_ERROR(150)
1433 * @def CHIP_ERROR_NO_KEY_EXPORT_DELEGATE
1436 * No key export delegate is set.
1439 #define CHIP_ERROR_NO_KEY_EXPORT_DELEGATE _CHIP_ERROR(151)
1442 * @def CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_REQUEST
1445 * Unauthorized key export request.
1448 #define CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_REQUEST _CHIP_ERROR(152)
1451 * @def CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_RESPONSE
1454 * Unauthorized key export response.
1457 #define CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_RESPONSE _CHIP_ERROR(153)
1460 * @def CHIP_ERROR_EXPORTED_KEY_AUTHENTICATION_FAILED
1463 * The CHIP exported encrypted key authentication failed.
1466 #define CHIP_ERROR_EXPORTED_KEY_AUTHENTICATION_FAILED _CHIP_ERROR(154)
1469 * @def CHIP_ERROR_TOO_MANY_SHARED_SESSION_END_NODES
1472 * The number of shared secure sessions end nodes exceeds
1473 * the maximum limit.
1476 #define CHIP_ERROR_TOO_MANY_SHARED_SESSION_END_NODES _CHIP_ERROR(155)
1479 * @def CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_DATA_ELEMENT
1482 * The Attribute DataElement is malformed: it either does not contain
1483 * the required elements
1485 #define CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_DATA_ELEMENT _CHIP_ERROR(156)
1488 * @def CHIP_ERROR_WRONG_CERT_TYPE
1491 * The presented certificate was of the wrong type.
1493 #define CHIP_ERROR_WRONG_CERT_TYPE _CHIP_ERROR(157)
1496 * @def CHIP_ERROR_DEFAULT_EVENT_HANDLER_NOT_CALLED
1499 * The application's event handler failed to call the default event handler function
1500 * when presented with an unknown event.
1502 #define CHIP_ERROR_DEFAULT_EVENT_HANDLER_NOT_CALLED _CHIP_ERROR(158)
1505 * @def CHIP_ERROR_PERSISTED_STORAGE_FAILED
1508 * Persisted storage memory read/write failure.
1511 #define CHIP_ERROR_PERSISTED_STORAGE_FAILED _CHIP_ERROR(159)
1514 * @def CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND
1517 * The specific value is not found in the persisted storage.
1520 #define CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND _CHIP_ERROR(160)
1523 * @def CHIP_ERROR_PROFILE_STRING_CONTEXT_ALREADY_REGISTERED
1526 * The specified profile string support context is already registered.
1529 #define CHIP_ERROR_PROFILE_STRING_CONTEXT_ALREADY_REGISTERED _CHIP_ERROR(161)
1532 * @def CHIP_ERROR_PROFILE_STRING_CONTEXT_NOT_REGISTERED
1535 * The specified profile string support context is not registered.
1538 #define CHIP_ERROR_PROFILE_STRING_CONTEXT_NOT_REGISTERED _CHIP_ERROR(162)
1541 * @def CHIP_ERROR_INCOMPATIBLE_SCHEMA_VERSION
1544 * Encountered a mismatch in compatibility w.r.t to IDL schema version
1546 #define CHIP_ERROR_INCOMPATIBLE_SCHEMA_VERSION _CHIP_ERROR(163)
1549 * @def CHIP_ERROR_MISMATCH_UPDATE_REQUIRED_VERSION
1552 * Encountered a mismatch between update required version and current version
1554 #define CHIP_ERROR_MISMATCH_UPDATE_REQUIRED_VERSION _CHIP_ERROR(164)
1558 * @def CHIP_ERROR_ACCESS_DENIED
1561 * The CHIP message is not granted access for further processing.
1563 #define CHIP_ERROR_ACCESS_DENIED _CHIP_ERROR(165)
1566 * @def CHIP_ERROR_UNKNOWN_RESOURCE_ID
1569 * Unknown resource ID
1572 #define CHIP_ERROR_UNKNOWN_RESOURCE_ID _CHIP_ERROR(166)
1575 * @def CHIP_ERROR_VERSION_MISMATCH
1578 * The conditional update of a trait instance path has failed
1579 * because the local changes are based on an obsolete version of the
1582 #define CHIP_ERROR_VERSION_MISMATCH _CHIP_ERROR(167)
1585 * @def CHIP_ERROR_UNSUPPORTED_THREAD_NETWORK_CREATE
1588 * Device doesn't support standalone Thread network creation.
1589 * On some legacy devices new Thread network can only be created
1590 * together with CHIP Fabric using CrateFabric() message.
1593 #define CHIP_ERROR_UNSUPPORTED_THREAD_NETWORK_CREATE _CHIP_ERROR(168)
1596 * @def CHIP_ERROR_INCONSISTENT_CONDITIONALITY
1599 * A TraitPath was declared updated with a conditionality that
1600 * does not match that of other TraitPaths already updated in the
1601 * same Trait Instance.
1604 #define CHIP_ERROR_INCONSISTENT_CONDITIONALITY _CHIP_ERROR(169)
1607 * @def CHIP_ERROR_LOCAL_DATA_INCONSISTENT
1610 * The local data does not match any known version of the
1611 * Trait Instance and cannot support the operation requested.
1614 #define CHIP_ERROR_LOCAL_DATA_INCONSISTENT _CHIP_ERROR(170)
1617 * @def CHIP_EVENT_ID_FOUND
1620 * Event ID matching the criteria was found
1622 #define CHIP_EVENT_ID_FOUND _CHIP_ERROR(171)
1625 * @def CHIP_ERROR_INTERNAL
1630 #define CHIP_ERROR_INTERNAL _CHIP_ERROR(172)
1633 * @def CHIP_ERROR_OPEN_FAILED
1638 #define CHIP_ERROR_OPEN_FAILED _CHIP_ERROR(173)
1641 * @def CHIP_ERROR_READ_FAILED
1644 * Read from file failed
1646 #define CHIP_ERROR_READ_FAILED _CHIP_ERROR(174)
1649 * @def CHIP_ERROR_WRITE_FAILED
1652 * Write to file failed
1654 #define CHIP_ERROR_WRITE_FAILED _CHIP_ERROR(175)
1657 * @def CHIP_ERROR_DECODE_FAILED
1662 #define CHIP_ERROR_DECODE_FAILED _CHIP_ERROR(176)
1666 * @def CHIP_ERROR_SESSION_KEY_SUSPENDED
1669 * Use of the identified session key is suspended.
1672 #define CHIP_ERROR_SESSION_KEY_SUSPENDED _CHIP_ERROR(177)
1675 * @def CHIP_ERROR_UNSUPPORTED_WIRELESS_REGULATORY_DOMAIN
1678 * The specified wireless regulatory domain is unsupported.
1681 #define CHIP_ERROR_UNSUPPORTED_WIRELESS_REGULATORY_DOMAIN _CHIP_ERROR(178)
1684 * @def CHIP_ERROR_UNSUPPORTED_WIRELESS_OPERATING_LOCATION
1687 * The specified wireless operating location is unsupported.
1690 #define CHIP_ERROR_UNSUPPORTED_WIRELESS_OPERATING_LOCATION _CHIP_ERROR(179)
1693 * @def CHIP_ERROR_MDNS_COLLISSION
1696 * The registered service name has collision on the LAN.
1699 #define CHIP_ERROR_MDNS_COLLISSION _CHIP_ERROR(180)
1702 * @def CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH
1705 * The Attribute path is malformed: it either does not contain
1708 #define CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH _CHIP_ERROR(181)
1711 * @def CHIP_ERROR_IM_MALFORMED_EVENT_PATH
1714 * The Attribute Path is malformed: it either does not contain
1715 * the required elements
1717 #define CHIP_ERROR_IM_MALFORMED_EVENT_PATH _CHIP_ERROR(182)
1720 * @def CHIP_ERROR_IM_MALFORMED_COMMAND_PATH
1723 * The Attribute DataElement is malformed: it either does not contain
1724 * the required elements
1726 #define CHIP_ERROR_IM_MALFORMED_COMMAND_PATH _CHIP_ERROR(183)
1729 * @def CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_STATUS_ELEMENT
1732 * The Attribute DataElement is malformed: it either does not contain
1733 * the required elements
1735 #define CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_STATUS_ELEMENT _CHIP_ERROR(184)
1738 * @def CHIP_ERROR_IM_MALFORMED_COMMAND_DATA_ELEMENT
1741 * The Attribute DataElement is malformed: it either does not contain
1742 * the required elements
1744 #define CHIP_ERROR_IM_MALFORMED_COMMAND_DATA_ELEMENT _CHIP_ERROR(185)
1747 * @def CHIP_ERROR_IM_MALFORMED_EVENT_DATA_ELEMENT
1750 * The Event DataElement is malformed: it either does not contain
1751 * the required elements
1753 #define CHIP_ERROR_IM_MALFORMED_EVENT_DATA_ELEMENT _CHIP_ERROR(186)
1756 * @def CHIP_ERROR_IM_MALFORMED_STATUS_CODE
1759 * The Attribute DataElement is malformed: it either does not contain
1760 * the required elements
1762 #define CHIP_ERROR_IM_MALFORMED_STATUS_CODE _CHIP_ERROR(187)
1765 * @def CHIP_ERROR_PEER_NODE_NOT_FOUND
1768 * Unable to find the peer node
1770 #define CHIP_ERROR_PEER_NODE_NOT_FOUND _CHIP_ERROR(188)
1776 // !!!!! IMPORTANT !!!!! If you add new CHIP errors, please update the translation
1777 // of error codes to strings in CHIPError.cpp, and add them to unittest
1778 // in test-apps/TestErrorStr.cpp
1784 extern void RegisterCHIPLayerErrorFormatter();
1785 extern bool FormatCHIPError(char * buf, uint16_t bufSize, int32_t err);