From a27bc8cc7a95d0c8c72ff2599d11be423d1358e3 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Wed, 29 Mar 2023 22:31:44 -0400 Subject: [PATCH] Remove unused CHIP_ERROR values. (#25888) This frees up space to add new errors we might actually need. ERROR_CODES.md was regenerated by running the script it points to and then restyle. --- docs/ERROR_CODES.md | 364 ++++----- src/lib/core/CHIPError.cpp | 285 ------- src/lib/core/CHIPError.h | 952 +++--------------------- src/lib/core/tests/TestCHIPErrorStr.cpp | 96 --- src/messaging/ExchangeContext.h | 2 - 5 files changed, 249 insertions(+), 1450 deletions(-) diff --git a/docs/ERROR_CODES.md b/docs/ERROR_CODES.md index 4026219328fa2f..17f4ff6ba83a5a 100644 --- a/docs/ERROR_CODES.md +++ b/docs/ERROR_CODES.md @@ -1,3 +1,5 @@ +[//]: # "start_ignore_spellcheck" + # Matter SDK `CHIP_ERROR` enums values This file was **AUTOMATICALLY** generated by @@ -8,238 +10,144 @@ This file was **AUTOMATICALLY** generated by - [SDK Core errors: range `0x000..0x0FF`](#sdk-core-errors) - [SDK Inet Layer errors: range `0x100..0x1FF`](#sdk-inet-layer-errors) - [SDK Device Layer errors: range `0x200..0x2FF`](#sdk-device-layer-errors) -- [ASN.1 Layer errors: range `0x300..0x3FF`](#asn.1-layer-errors) +- [ASN.1 Layer errors: range `0x300..0x3FF`](#asn-1-layer-errors) - [BLE Layer errors: range `0x400..0x4FF`](#ble-layer-errors) - [IM Global errors errors: range `0x500..0x5FF`](#im-global-errors-errors) ## SDK Core errors -| Decimal | Hex | Name | -| ------- | ---- | ---------------------------------------------------- | -| 0 | 0x00 | `CHIP_NO_ERROR` | -| 1 | 0x01 | `CHIP_ERROR_SENDING_BLOCKED` | -| 2 | 0x02 | `CHIP_ERROR_CONNECTION_ABORTED` | -| 3 | 0x03 | `CHIP_ERROR_INCORRECT_STATE` | -| 4 | 0x04 | `CHIP_ERROR_MESSAGE_TOO_LONG` | -| 5 | 0x05 | `CHIP_ERROR_UNSUPPORTED_EXCHANGE_VERSION` | -| 6 | 0x06 | `CHIP_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS` | -| 7 | 0x07 | `CHIP_ERROR_NO_UNSOLICITED_MESSAGE_HANDLER` | -| 8 | 0x08 | `CHIP_ERROR_NO_CONNECTION_HANDLER` | -| 9 | 0x09 | `CHIP_ERROR_TOO_MANY_PEER_NODES` | -| 10 | 0x0A | `CHIP_ERROR_SENTINEL` | -| 11 | 0x0B | `CHIP_ERROR_NO_MEMORY` | -| 12 | 0x0C | `CHIP_ERROR_NO_MESSAGE_HANDLER` | -| 13 | 0x0D | `CHIP_ERROR_MESSAGE_INCOMPLETE` | -| 14 | 0x0E | `CHIP_ERROR_DATA_NOT_ALIGNED` | -| 15 | 0x0F | `CHIP_ERROR_UNKNOWN_KEY_TYPE` | -| 16 | 0x10 | `CHIP_ERROR_KEY_NOT_FOUND` | -| 17 | 0x11 | `CHIP_ERROR_WRONG_ENCRYPTION_TYPE` | -| 18 | 0x12 | `CHIP_ERROR_TOO_MANY_KEYS` | -| 19 | 0x13 | `CHIP_ERROR_INTEGRITY_CHECK_FAILED` | -| 20 | 0x14 | `CHIP_ERROR_INVALID_SIGNATURE` | -| 21 | 0x15 | `CHIP_ERROR_UNSUPPORTED_MESSAGE_VERSION` | -| 22 | 0x16 | `CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE` | -| 23 | 0x17 | `CHIP_ERROR_UNSUPPORTED_SIGNATURE_TYPE` | -| 24 | 0x18 | `CHIP_ERROR_INVALID_MESSAGE_LENGTH` | -| 25 | 0x19 | `CHIP_ERROR_BUFFER_TOO_SMALL` | -| 26 | 0x1A | `CHIP_ERROR_DUPLICATE_KEY_ID` | -| 27 | 0x1B | `CHIP_ERROR_WRONG_KEY_TYPE` | -| 28 | 0x1C | `CHIP_ERROR_WELL_UNINITIALIZED` | -| 29 | 0x1D | `CHIP_ERROR_WELL_EMPTY` | -| 30 | 0x1E | `CHIP_ERROR_INVALID_STRING_LENGTH` | -| 31 | 0x1F | `CHIP_ERROR_INVALID_LIST_LENGTH` | -| 32 | 0x20 | `CHIP_ERROR_INVALID_INTEGRITY_TYPE` | -| 33 | 0x21 | `CHIP_ERROR_END_OF_TLV` | -| 34 | 0x22 | `CHIP_ERROR_TLV_UNDERRUN` | -| 35 | 0x23 | `CHIP_ERROR_INVALID_TLV_ELEMENT` | -| 36 | 0x24 | `CHIP_ERROR_INVALID_TLV_TAG` | -| 37 | 0x25 | `CHIP_ERROR_UNKNOWN_IMPLICIT_TLV_TAG` | -| 38 | 0x26 | `CHIP_ERROR_WRONG_TLV_TYPE` | -| 39 | 0x27 | `CHIP_ERROR_TLV_CONTAINER_OPEN` | -| 40 | 0x28 | `CHIP_ERROR_INVALID_TRANSFER_MODE` | -| 41 | 0x29 | `CHIP_ERROR_INVALID_PROFILE_ID` | -| 42 | 0x2A | `CHIP_ERROR_INVALID_MESSAGE_TYPE` | -| 43 | 0x2B | `CHIP_ERROR_UNEXPECTED_TLV_ELEMENT` | -| 44 | 0x2C | `CHIP_ERROR_STATUS_REPORT_RECEIVED` | -| 45 | 0x2D | `CHIP_ERROR_NOT_IMPLEMENTED` | -| 46 | 0x2E | `CHIP_ERROR_INVALID_ADDRESS` | -| 47 | 0x2F | `CHIP_ERROR_INVALID_ARGUMENT` | -| 48 | 0x30 | `CHIP_ERROR_INVALID_PATH_LIST` | -| 49 | 0x31 | `CHIP_ERROR_INVALID_DATA_LIST` | -| 50 | 0x32 | `CHIP_ERROR_TIMEOUT` | -| 51 | 0x33 | `CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR` | -| 52 | 0x34 | `CHIP_ERROR_UNSUPPORTED_DEVICE_DESCRIPTOR_VERSION` | -| 53 | 0x35 | `CHIP_ERROR_END_OF_INPUT` | -| 54 | 0x36 | `CHIP_ERROR_RATE_LIMIT_EXCEEDED` | -| 55 | 0x37 | `CHIP_ERROR_SECURITY_MANAGER_BUSY` | -| 56 | 0x38 | `CHIP_ERROR_INVALID_PASE_PARAMETER` | -| 57 | 0x39 | `CHIP_ERROR_PASE_SUPPORTS_ONLY_CONFIG1` | -| 58 | 0x3A | `CHIP_ERROR_KEY_CONFIRMATION_FAILED` | -| 59 | 0x3B | `CHIP_ERROR_INVALID_USE_OF_SESSION_KEY` | -| 60 | 0x3C | `CHIP_ERROR_CONNECTION_CLOSED_UNEXPECTEDLY` | -| 61 | 0x3D | `CHIP_ERROR_MISSING_TLV_ELEMENT` | -| 62 | 0x3E | `CHIP_ERROR_RANDOM_DATA_UNAVAILABLE` | -| 63 | 0x3F | `CHIP_ERROR_UNSUPPORTED_HOST_PORT_ELEMENT` | -| 64 | 0x40 | `CHIP_ERROR_INVALID_HOST_SUFFIX_INDEX` | -| 65 | 0x41 | `CHIP_ERROR_HOST_PORT_LIST_EMPTY` | -| 66 | 0x42 | `CHIP_ERROR_UNSUPPORTED_AUTH_MODE` | -| 67 | 0x43 | `CHIP_ERROR_INVALID_SERVICE_EP` | -| 68 | 0x44 | `CHIP_ERROR_INVALID_DIRECTORY_ENTRY_TYPE` | -| 69 | 0x45 | `CHIP_ERROR_FORCED_RESET` | -| 70 | 0x46 | `CHIP_ERROR_NO_ENDPOINT` | -| 71 | 0x47 | `CHIP_ERROR_INVALID_DESTINATION_NODE_ID` | -| 72 | 0x48 | `CHIP_ERROR_NOT_CONNECTED` | -| 73 | 0x49 | `CHIP_ERROR_NO_SW_UPDATE_AVAILABLE` | -| 74 | 0x4A | `CHIP_ERROR_CA_CERT_NOT_FOUND` | -| 75 | 0x4B | `CHIP_ERROR_CERT_PATH_LEN_CONSTRAINT_EXCEEDED` | -| 76 | 0x4C | `CHIP_ERROR_CERT_PATH_TOO_LONG` | -| 77 | 0x4D | `CHIP_ERROR_CERT_USAGE_NOT_ALLOWED` | -| 78 | 0x4E | `CHIP_ERROR_CERT_EXPIRED` | -| 79 | 0x4F | `CHIP_ERROR_CERT_NOT_VALID_YET` | -| 80 | 0x50 | `CHIP_ERROR_UNSUPPORTED_CERT_FORMAT` | -| 81 | 0x51 | `CHIP_ERROR_UNSUPPORTED_ELLIPTIC_CURVE` | -| 82 | 0x52 | `CHIP_ERROR_CERT_NOT_USED` | -| 83 | 0x53 | `CHIP_ERROR_CERT_NOT_FOUND` | -| 84 | 0x54 | `CHIP_ERROR_INVALID_CASE_PARAMETER` | -| 85 | 0x55 | `CHIP_ERROR_UNSUPPORTED_CASE_CONFIGURATION` | -| 86 | 0x56 | `CHIP_ERROR_CERT_LOAD_FAILED` | -| 87 | 0x57 | `CHIP_ERROR_CERT_NOT_TRUSTED` | -| 88 | 0x58 | `CHIP_ERROR_INVALID_ACCESS_TOKEN` | -| 89 | 0x59 | `CHIP_ERROR_WRONG_CERT_DN` | -| 90 | 0x5A | `CHIP_ERROR_INVALID_PROVISIONING_BUNDLE` | -| 91 | 0x5B | `CHIP_ERROR_PROVISIONING_BUNDLE_DECRYPTION_ERROR` | -| 92 | 0x5C | `CHIP_ERROR_WRONG_NODE_ID` | -| 93 | 0x5D | `CHIP_ERROR_CONN_ACCEPTED_ON_WRONG_PORT` | -| 94 | 0x5E | `CHIP_ERROR_CALLBACK_REPLACED` | -| 95 | 0x5F | `CHIP_ERROR_NO_CASE_AUTH_DELEGATE` | -| 96 | 0x60 | `CHIP_ERROR_DEVICE_LOCATE_TIMEOUT` | -| 97 | 0x61 | `CHIP_ERROR_DEVICE_CONNECT_TIMEOUT` | -| 98 | 0x62 | `CHIP_ERROR_DEVICE_AUTH_TIMEOUT` | -| 99 | 0x63 | `CHIP_ERROR_MESSAGE_NOT_ACKNOWLEDGED` | -| 100 | 0x64 | `CHIP_ERROR_RETRANS_TABLE_FULL` | -| 101 | 0x65 | `CHIP_ERROR_INVALID_ACK_MESSAGE_COUNTER` | -| 102 | 0x66 | `CHIP_ERROR_SEND_THROTTLED` | -| 103 | 0x67 | `CHIP_ERROR_WRONG_MSG_VERSION_FOR_EXCHANGE` | -| 104 | 0x68 | `CHIP_ERROR_TRANSACTION_CANCELED` | -| 105 | 0x69 | `CHIP_ERROR_LISTENER_ALREADY_STARTED` | -| 106 | 0x6A | `CHIP_ERROR_LISTENER_ALREADY_STOPPED` | -| 107 | 0x6B | `CHIP_ERROR_INVALID_SUBSCRIPTION` | -| 108 | 0x6C | `CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE` | -| 109 | 0x6D | `CHIP_ERROR_PASE_RECONFIGURE_REQUIRED` | -| 110 | 0x6E | `CHIP_ERROR_INVALID_PASE_CONFIGURATION` | -| 111 | 0x6F | `CHIP_ERROR_NO_COMMON_PASE_CONFIGURATIONS` | -| 112 | 0x70 | `CHIP_ERROR_UNSOLICITED_MSG_NO_ORIGINATOR` | -| 113 | 0x71 | `CHIP_ERROR_INVALID_FABRIC_INDEX` | -| 114 | 0x72 | `CHIP_ERROR_TOO_MANY_CONNECTIONS` | -| 115 | 0x73 | `CHIP_ERROR_SHUT_DOWN` | -| 116 | 0x74 | `CHIP_ERROR_CANCELLED` | -| 117 | 0x75 | `CHIP_ERROR_DRBG_ENTROPY_SOURCE_FAILED` | -| 118 | 0x76 | `CHIP_ERROR_TLV_TAG_NOT_FOUND` | -| 119 | 0x77 | `CHIP_ERROR_MISSING_SECURE_SESSION` | -| 120 | 0x78 | `CHIP_ERROR_INVALID_ADMIN_SUBJECT` | -| 121 | 0x79 | `CHIP_ERROR_INSUFFICIENT_PRIVILEGE` | -| 122 | 0x7A | `CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_IB` | -| 123 | 0x7B | `CHIP_ERROR_IM_MALFORMED_EVENT_STATUS_IB` | -| 124 | 0x7C | `CHIP_ERROR_IM_MALFORMED_STATUS_RESPONSE_MESSAGE` | -| 125 | 0x7D | `CHIP_ERROR_MESSAGE_COUNTER_EXHAUSTED` | -| 126 | 0x7E | `CHIP_ERROR_FABRIC_EXISTS` | -| 127 | 0x7F | `CHIP_ERROR_KEY_NOT_FOUND_FROM_PEER` | -| 128 | 0x80 | `CHIP_ERROR_WRONG_ENCRYPTION_TYPE_FROM_PEER` | -| 129 | 0x81 | `CHIP_ERROR_UNKNOWN_KEY_TYPE_FROM_PEER` | -| 130 | 0x82 | `CHIP_ERROR_INVALID_USE_OF_SESSION_KEY_FROM_PEER` | -| 131 | 0x83 | `CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE_FROM_PEER` | -| 132 | 0x84 | `CHIP_ERROR_INTERNAL_KEY_ERROR_FROM_PEER` | -| 133 | 0x85 | `CHIP_ERROR_INVALID_KEY_ID` | -| 134 | 0x86 | `CHIP_ERROR_INVALID_TIME` | -| 135 | 0x87 | `CHIP_ERROR_LOCKING_FAILURE` | -| 136 | 0x88 | `CHIP_ERROR_UNSUPPORTED_PASSCODE_CONFIG` | -| 137 | 0x89 | `CHIP_ERROR_PASSCODE_AUTHENTICATION_FAILED` | -| 138 | 0x8A | `CHIP_ERROR_PASSCODE_FINGERPRINT_FAILED` | -| 139 | 0x8B | `CHIP_ERROR_SERIALIZATION_ELEMENT_NULL` | -| 140 | 0x8C | `CHIP_ERROR_WRONG_CERT_SIGNATURE_ALGORITHM` | -| 141 | 0x8D | `CHIP_ERROR_WRONG_CHIP_SIGNATURE_ALGORITHM` | -| 142 | 0x8E | `CHIP_ERROR_SCHEMA_MISMATCH` | -| 143 | 0x8F | `CHIP_ERROR_INVALID_INTEGER_VALUE` | -| 144 | 0x90 | `CHIP_ERROR_CASE_RECONFIG_REQUIRED` | -| 145 | 0x91 | `CHIP_ERROR_TOO_MANY_CASE_RECONFIGURATIONS` | -| 146 | 0x92 | `CHIP_ERROR_BAD_REQUEST` | -| 147 | 0x93 | `CHIP_ERROR_INVALID_MESSAGE_FLAG` | -| 148 | 0x94 | `CHIP_ERROR_KEY_EXPORT_RECONFIGURE_REQUIRED` | -| 149 | 0x95 | `CHIP_ERROR_INVALID_KEY_EXPORT_CONFIGURATION` | -| 150 | 0x96 | `CHIP_ERROR_NO_COMMON_KEY_EXPORT_CONFIGURATIONS` | -| 151 | 0x97 | `CHIP_ERROR_NO_KEY_EXPORT_DELEGATE` | -| 152 | 0x98 | `CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_REQUEST` | -| 153 | 0x99 | `CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_RESPONSE` | -| 154 | 0x9A | `CHIP_ERROR_EXPORTED_KEY_AUTHENTICATION_FAILED` | -| 155 | 0x9B | `CHIP_ERROR_TOO_MANY_SHARED_SESSION_END_NODES` | -| 156 | 0x9C | `CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_DATA_IB` | -| 157 | 0x9D | `CHIP_ERROR_WRONG_CERT_TYPE` | -| 158 | 0x9E | `CHIP_ERROR_DEFAULT_EVENT_HANDLER_NOT_CALLED` | -| 159 | 0x9F | `CHIP_ERROR_PERSISTED_STORAGE_FAILED` | -| 160 | 0xA0 | `CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND` | -| 161 | 0xA1 | `CHIP_ERROR_IM_FABRIC_DELETED` | -| 162 | 0xA2 | `CHIP_ERROR_PROFILE_STRING_CONTEXT_NOT_REGISTERED` | -| 163 | 0xA3 | `CHIP_ERROR_INCOMPATIBLE_SCHEMA_VERSION` | -| 165 | 0xA5 | `CHIP_ERROR_ACCESS_DENIED` | -| 166 | 0xA6 | `CHIP_ERROR_UNKNOWN_RESOURCE_ID` | -| 167 | 0xA7 | `CHIP_ERROR_VERSION_MISMATCH` | -| 168 | 0xA8 | `CHIP_ERROR_UNSUPPORTED_THREAD_NETWORK_CREATE` | -| 169 | 0xA9 | `CHIP_ERROR_INCONSISTENT_CONDITIONALITY` | -| 170 | 0xAA | `CHIP_ERROR_LOCAL_DATA_INCONSISTENT` | -| 171 | 0xAB | `CHIP_ERROR_EVENT_ID_FOUND` | -| 172 | 0xAC | `CHIP_ERROR_INTERNAL` | -| 173 | 0xAD | `CHIP_ERROR_OPEN_FAILED` | -| 174 | 0xAE | `CHIP_ERROR_READ_FAILED` | -| 175 | 0xAF | `CHIP_ERROR_WRITE_FAILED` | -| 176 | 0xB0 | `CHIP_ERROR_DECODE_FAILED` | -| 177 | 0xB1 | `CHIP_ERROR_SESSION_KEY_SUSPENDED` | -| 178 | 0xB2 | `CHIP_ERROR_UNSUPPORTED_WIRELESS_REGULATORY_DOMAIN` | -| 179 | 0xB3 | `CHIP_ERROR_UNSUPPORTED_WIRELESS_OPERATING_LOCATION` | -| 180 | 0xB4 | `CHIP_ERROR_MDNS_COLLISION` | -| 181 | 0xB5 | `CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH_IB` | -| 182 | 0xB6 | `CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB` | -| 183 | 0xB7 | `CHIP_ERROR_IM_MALFORMED_COMMAND_PATH_IB` | -| 184 | 0xB8 | `CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_STATUS_IB` | -| 185 | 0xB9 | `CHIP_ERROR_IM_MALFORMED_COMMAND_DATA_IB` | -| 186 | 0xBA | `CHIP_ERROR_IM_MALFORMED_EVENT_DATA_IB` | -| 187 | 0xBB | `CHIP_ERROR_IM_MALFORMED_STATUS_IB` | -| 188 | 0xBC | `CHIP_ERROR_PEER_NODE_NOT_FOUND` | -| 189 | 0xBD | `CHIP_ERROR_HSM` | -| 190 | 0xBE | `CHIP_ERROR_INTERMEDIATE_CA_NOT_REQUIRED` | -| 191 | 0xBF | `CHIP_ERROR_REAL_TIME_NOT_SYNCED` | -| 192 | 0xC0 | `CHIP_ERROR_UNEXPECTED_EVENT` | -| 193 | 0xC1 | `CHIP_ERROR_ENDPOINT_POOL_FULL` | -| 194 | 0xC2 | `CHIP_ERROR_INBOUND_MESSAGE_TOO_BIG` | -| 195 | 0xC3 | `CHIP_ERROR_OUTBOUND_MESSAGE_TOO_BIG` | -| 196 | 0xC4 | `CHIP_ERROR_DUPLICATE_MESSAGE_RECEIVED` | -| 197 | 0xC5 | `CHIP_ERROR_INVALID_PUBLIC_KEY` | -| 198 | 0xC6 | `CHIP_ERROR_FABRIC_MISMATCH_ON_ICA` | -| 199 | 0xC7 | `CHIP_ERROR_MESSAGE_COUNTER_OUT_OF_WINDOW` | -| 200 | 0xC8 | `CHIP_ERROR_REBOOT_SIGNAL_RECEIVED` | -| 201 | 0xC9 | `CHIP_ERROR_NO_SHARED_TRUSTED_ROOT` | -| 202 | 0xCA | `CHIP_ERROR_IM_STATUS_CODE_RECEIVED` | -| 203 | 0xCB | `CHIP_ERROR_IM_MALFORMED_COMMAND_STATUS_IB` | -| 204 | 0xCC | `CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_IB` | -| 205 | 0xCD | `CHIP_ERROR_IM_MALFORMED_INVOKE_REQUEST_MESSAGE` | -| 206 | 0xCE | `CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_MESSAGE` | -| 207 | 0xCF | `CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_MESSAGE` | -| 208 | 0xD0 | `CHIP_ERROR_IM_MALFORMED_WRITE_REQUEST_MESSAGE` | -| 209 | 0xD1 | `CHIP_ERROR_IM_MALFORMED_EVENT_FILTER_IB` | -| 210 | 0xD2 | `CHIP_ERROR_IM_MALFORMED_READ_REQUEST_MESSAGE` | -| 211 | 0xD3 | `CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_REQUEST_MESSAGE` | -| 212 | 0xD4 | `CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_RESPONSE_MESSAGE` | -| 213 | 0xD5 | `CHIP_ERROR_IM_MALFORMED_EVENT_REPORT_IB` | -| 214 | 0xD6 | `CHIP_ERROR_IM_MALFORMED_CLUSTER_PATH_IB` | -| 215 | 0xD7 | `CHIP_ERROR_IM_MALFORMED_DATA_VERSION_FILTER_IB` | -| 216 | 0xD8 | `CHIP_ERROR_NOT_FOUND` | -| 217 | 0xD9 | `CHIP_ERROR_IM_MALFORMED_TIMED_REQUEST_MESSAGE` | -| 218 | 0xDA | `CHIP_ERROR_INVALID_FILE_IDENTIFIER` | -| 219 | 0xDB | `CHIP_ERROR_BUSY` | -| 220 | 0xDC | `CHIP_ERROR_MAX_RETRY_EXCEEDED` | -| 221 | 0xDD | `CHIP_ERROR_PROVIDER_LIST_EXHAUSTED` | -| 222 | 0xDE | `CHIP_ERROR_ANOTHER_COMMISSIONING_IN_PROGRESS` | -| 223 | 0xDF | `CHIP_ERROR_INVALID_SCHEME_PREFIX` | -| 224 | 0xE0 | `CHIP_ERROR_MISSING_URI_SEPARATOR` | +| Decimal | Hex | Name | +| ------- | ---- | -------------------------------------------------- | +| 0 | 0x00 | `CHIP_NO_ERROR` | +| 1 | 0x01 | `CHIP_ERROR_SENDING_BLOCKED` | +| 2 | 0x02 | `CHIP_ERROR_CONNECTION_ABORTED` | +| 3 | 0x03 | `CHIP_ERROR_INCORRECT_STATE` | +| 4 | 0x04 | `CHIP_ERROR_MESSAGE_TOO_LONG` | +| 5 | 0x05 | `CHIP_ERROR_UNSUPPORTED_EXCHANGE_VERSION` | +| 6 | 0x06 | `CHIP_ERROR_TOO_MANY_UNSOLICITED_MESSAGE_HANDLERS` | +| 7 | 0x07 | `CHIP_ERROR_NO_UNSOLICITED_MESSAGE_HANDLER` | +| 8 | 0x08 | `CHIP_ERROR_NO_CONNECTION_HANDLER` | +| 9 | 0x09 | `CHIP_ERROR_TOO_MANY_PEER_NODES` | +| 10 | 0x0A | `CHIP_ERROR_SENTINEL` | +| 11 | 0x0B | `CHIP_ERROR_NO_MEMORY` | +| 12 | 0x0C | `CHIP_ERROR_NO_MESSAGE_HANDLER` | +| 13 | 0x0D | `CHIP_ERROR_MESSAGE_INCOMPLETE` | +| 14 | 0x0E | `CHIP_ERROR_DATA_NOT_ALIGNED` | +| 15 | 0x0F | `CHIP_ERROR_UNKNOWN_KEY_TYPE` | +| 16 | 0x10 | `CHIP_ERROR_KEY_NOT_FOUND` | +| 17 | 0x11 | `CHIP_ERROR_WRONG_ENCRYPTION_TYPE` | +| 19 | 0x13 | `CHIP_ERROR_INTEGRITY_CHECK_FAILED` | +| 20 | 0x14 | `CHIP_ERROR_INVALID_SIGNATURE` | +| 23 | 0x17 | `CHIP_ERROR_UNSUPPORTED_SIGNATURE_TYPE` | +| 24 | 0x18 | `CHIP_ERROR_INVALID_MESSAGE_LENGTH` | +| 25 | 0x19 | `CHIP_ERROR_BUFFER_TOO_SMALL` | +| 26 | 0x1A | `CHIP_ERROR_DUPLICATE_KEY_ID` | +| 27 | 0x1B | `CHIP_ERROR_WRONG_KEY_TYPE` | +| 28 | 0x1C | `CHIP_ERROR_WELL_UNINITIALIZED` | +| 29 | 0x1D | `CHIP_ERROR_WELL_EMPTY` | +| 30 | 0x1E | `CHIP_ERROR_INVALID_STRING_LENGTH` | +| 31 | 0x1F | `CHIP_ERROR_INVALID_LIST_LENGTH` | +| 33 | 0x21 | `CHIP_ERROR_END_OF_TLV` | +| 34 | 0x22 | `CHIP_ERROR_TLV_UNDERRUN` | +| 35 | 0x23 | `CHIP_ERROR_INVALID_TLV_ELEMENT` | +| 36 | 0x24 | `CHIP_ERROR_INVALID_TLV_TAG` | +| 37 | 0x25 | `CHIP_ERROR_UNKNOWN_IMPLICIT_TLV_TAG` | +| 38 | 0x26 | `CHIP_ERROR_WRONG_TLV_TYPE` | +| 39 | 0x27 | `CHIP_ERROR_TLV_CONTAINER_OPEN` | +| 42 | 0x2A | `CHIP_ERROR_INVALID_MESSAGE_TYPE` | +| 43 | 0x2B | `CHIP_ERROR_UNEXPECTED_TLV_ELEMENT` | +| 45 | 0x2D | `CHIP_ERROR_NOT_IMPLEMENTED` | +| 46 | 0x2E | `CHIP_ERROR_INVALID_ADDRESS` | +| 47 | 0x2F | `CHIP_ERROR_INVALID_ARGUMENT` | +| 48 | 0x30 | `CHIP_ERROR_INVALID_PATH_LIST` | +| 49 | 0x31 | `CHIP_ERROR_INVALID_DATA_LIST` | +| 50 | 0x32 | `CHIP_ERROR_TIMEOUT` | +| 51 | 0x33 | `CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR` | +| 53 | 0x35 | `CHIP_ERROR_END_OF_INPUT` | +| 56 | 0x38 | `CHIP_ERROR_INVALID_PASE_PARAMETER` | +| 59 | 0x3B | `CHIP_ERROR_INVALID_USE_OF_SESSION_KEY` | +| 60 | 0x3C | `CHIP_ERROR_CONNECTION_CLOSED_UNEXPECTEDLY` | +| 61 | 0x3D | `CHIP_ERROR_MISSING_TLV_ELEMENT` | +| 62 | 0x3E | `CHIP_ERROR_RANDOM_DATA_UNAVAILABLE` | +| 65 | 0x41 | `CHIP_ERROR_HOST_PORT_LIST_EMPTY` | +| 69 | 0x45 | `CHIP_ERROR_FORCED_RESET` | +| 70 | 0x46 | `CHIP_ERROR_NO_ENDPOINT` | +| 71 | 0x47 | `CHIP_ERROR_INVALID_DESTINATION_NODE_ID` | +| 72 | 0x48 | `CHIP_ERROR_NOT_CONNECTED` | +| 74 | 0x4A | `CHIP_ERROR_CA_CERT_NOT_FOUND` | +| 75 | 0x4B | `CHIP_ERROR_CERT_PATH_LEN_CONSTRAINT_EXCEEDED` | +| 76 | 0x4C | `CHIP_ERROR_CERT_PATH_TOO_LONG` | +| 77 | 0x4D | `CHIP_ERROR_CERT_USAGE_NOT_ALLOWED` | +| 78 | 0x4E | `CHIP_ERROR_CERT_EXPIRED` | +| 79 | 0x4F | `CHIP_ERROR_CERT_NOT_VALID_YET` | +| 80 | 0x50 | `CHIP_ERROR_UNSUPPORTED_CERT_FORMAT` | +| 81 | 0x51 | `CHIP_ERROR_UNSUPPORTED_ELLIPTIC_CURVE` | +| 83 | 0x53 | `CHIP_ERROR_CERT_NOT_FOUND` | +| 84 | 0x54 | `CHIP_ERROR_INVALID_CASE_PARAMETER` | +| 86 | 0x56 | `CHIP_ERROR_CERT_LOAD_FAILED` | +| 87 | 0x57 | `CHIP_ERROR_CERT_NOT_TRUSTED` | +| 89 | 0x59 | `CHIP_ERROR_WRONG_CERT_DN` | +| 92 | 0x5C | `CHIP_ERROR_WRONG_NODE_ID` | +| 100 | 0x64 | `CHIP_ERROR_RETRANS_TABLE_FULL` | +| 104 | 0x68 | `CHIP_ERROR_TRANSACTION_CANCELED` | +| 107 | 0x6B | `CHIP_ERROR_INVALID_SUBSCRIPTION` | +| 108 | 0x6C | `CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE` | +| 112 | 0x70 | `CHIP_ERROR_UNSOLICITED_MSG_NO_ORIGINATOR` | +| 113 | 0x71 | `CHIP_ERROR_INVALID_FABRIC_INDEX` | +| 114 | 0x72 | `CHIP_ERROR_TOO_MANY_CONNECTIONS` | +| 115 | 0x73 | `CHIP_ERROR_SHUT_DOWN` | +| 116 | 0x74 | `CHIP_ERROR_CANCELLED` | +| 118 | 0x76 | `CHIP_ERROR_TLV_TAG_NOT_FOUND` | +| 119 | 0x77 | `CHIP_ERROR_MISSING_SECURE_SESSION` | +| 120 | 0x78 | `CHIP_ERROR_INVALID_ADMIN_SUBJECT` | +| 121 | 0x79 | `CHIP_ERROR_INSUFFICIENT_PRIVILEGE` | +| 125 | 0x7D | `CHIP_ERROR_MESSAGE_COUNTER_EXHAUSTED` | +| 126 | 0x7E | `CHIP_ERROR_FABRIC_EXISTS` | +| 128 | 0x80 | `CHIP_ERROR_WRONG_ENCRYPTION_TYPE_FROM_PEER` | +| 133 | 0x85 | `CHIP_ERROR_INVALID_KEY_ID` | +| 134 | 0x86 | `CHIP_ERROR_INVALID_TIME` | +| 142 | 0x8E | `CHIP_ERROR_SCHEMA_MISMATCH` | +| 143 | 0x8F | `CHIP_ERROR_INVALID_INTEGER_VALUE` | +| 146 | 0x92 | `CHIP_ERROR_BAD_REQUEST` | +| 157 | 0x9D | `CHIP_ERROR_WRONG_CERT_TYPE` | +| 159 | 0x9F | `CHIP_ERROR_PERSISTED_STORAGE_FAILED` | +| 160 | 0xA0 | `CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND` | +| 161 | 0xA1 | `CHIP_ERROR_IM_FABRIC_DELETED` | +| 165 | 0xA5 | `CHIP_ERROR_ACCESS_DENIED` | +| 166 | 0xA6 | `CHIP_ERROR_UNKNOWN_RESOURCE_ID` | +| 167 | 0xA7 | `CHIP_ERROR_VERSION_MISMATCH` | +| 171 | 0xAB | `CHIP_ERROR_EVENT_ID_FOUND` | +| 172 | 0xAC | `CHIP_ERROR_INTERNAL` | +| 173 | 0xAD | `CHIP_ERROR_OPEN_FAILED` | +| 174 | 0xAE | `CHIP_ERROR_READ_FAILED` | +| 175 | 0xAF | `CHIP_ERROR_WRITE_FAILED` | +| 176 | 0xB0 | `CHIP_ERROR_DECODE_FAILED` | +| 180 | 0xB4 | `CHIP_ERROR_MDNS_COLLISION` | +| 181 | 0xB5 | `CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH_IB` | +| 182 | 0xB6 | `CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB` | +| 185 | 0xB9 | `CHIP_ERROR_IM_MALFORMED_COMMAND_DATA_IB` | +| 186 | 0xBA | `CHIP_ERROR_IM_MALFORMED_EVENT_DATA_IB` | +| 188 | 0xBC | `CHIP_ERROR_PEER_NODE_NOT_FOUND` | +| 189 | 0xBD | `CHIP_ERROR_HSM` | +| 191 | 0xBF | `CHIP_ERROR_REAL_TIME_NOT_SYNCED` | +| 192 | 0xC0 | `CHIP_ERROR_UNEXPECTED_EVENT` | +| 193 | 0xC1 | `CHIP_ERROR_ENDPOINT_POOL_FULL` | +| 194 | 0xC2 | `CHIP_ERROR_INBOUND_MESSAGE_TOO_BIG` | +| 195 | 0xC3 | `CHIP_ERROR_OUTBOUND_MESSAGE_TOO_BIG` | +| 196 | 0xC4 | `CHIP_ERROR_DUPLICATE_MESSAGE_RECEIVED` | +| 197 | 0xC5 | `CHIP_ERROR_INVALID_PUBLIC_KEY` | +| 198 | 0xC6 | `CHIP_ERROR_FABRIC_MISMATCH_ON_ICA` | +| 201 | 0xC9 | `CHIP_ERROR_NO_SHARED_TRUSTED_ROOT` | +| 202 | 0xCA | `CHIP_ERROR_IM_STATUS_CODE_RECEIVED` | +| 215 | 0xD7 | `CHIP_ERROR_IM_MALFORMED_DATA_VERSION_FILTER_IB` | +| 216 | 0xD8 | `CHIP_ERROR_NOT_FOUND` | +| 218 | 0xDA | `CHIP_ERROR_INVALID_FILE_IDENTIFIER` | +| 219 | 0xDB | `CHIP_ERROR_BUSY` | +| 220 | 0xDC | `CHIP_ERROR_MAX_RETRY_EXCEEDED` | +| 221 | 0xDD | `CHIP_ERROR_PROVIDER_LIST_EXHAUSTED` | +| 223 | 0xDF | `CHIP_ERROR_INVALID_SCHEME_PREFIX` | +| 224 | 0xE0 | `CHIP_ERROR_MISSING_URI_SEPARATOR` | +| 225 | 0xE1 | `CHIP_ERROR_HANDLER_NOT_SET` | ## SDK Inet Layer errors @@ -347,3 +255,5 @@ This file was **AUTOMATICALLY** generated by | 1481 | 0x5C9 | `TIMED_REQUEST_MISMATCH` | | 1482 | 0x5CA | `FAILSAFE_REQUIRED` | | 1520 | 0x5F0 | `WRITE_IGNORED` | + +[//]: # "end_ignore_spellcheck" diff --git a/src/lib/core/CHIPError.cpp b/src/lib/core/CHIPError.cpp index 2e35a3c9628e1b..87fdced8439852 100644 --- a/src/lib/core/CHIPError.cpp +++ b/src/lib/core/CHIPError.cpp @@ -113,21 +113,12 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_WRONG_ENCRYPTION_TYPE.AsInteger(): desc = "Wrong encryption type"; break; - case CHIP_ERROR_TOO_MANY_KEYS.AsInteger(): - desc = "Too many keys"; - break; case CHIP_ERROR_INTEGRITY_CHECK_FAILED.AsInteger(): desc = "Integrity check failed"; break; case CHIP_ERROR_INVALID_SIGNATURE.AsInteger(): desc = "Invalid signature"; break; - case CHIP_ERROR_UNSUPPORTED_MESSAGE_VERSION.AsInteger(): - desc = "Unsupported message version"; - break; - case CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE.AsInteger(): - desc = "Unsupported encryption type"; - break; case CHIP_ERROR_UNSUPPORTED_SIGNATURE_TYPE.AsInteger(): desc = "Unsupported signature type"; break; @@ -155,9 +146,6 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_INVALID_LIST_LENGTH.AsInteger(): desc = "invalid list length"; break; - case CHIP_ERROR_INVALID_INTEGRITY_TYPE.AsInteger(): - desc = "Invalid integrity type"; - break; case CHIP_END_OF_TLV.AsInteger(): desc = "End of TLV"; break; @@ -179,21 +167,12 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_TLV_CONTAINER_OPEN.AsInteger(): desc = "TLV container open"; break; - case CHIP_ERROR_INVALID_TRANSFER_MODE.AsInteger(): - desc = "Invalid transfer mode"; - break; - case CHIP_ERROR_INVALID_PROFILE_ID.AsInteger(): - desc = "Invalid profile id"; - break; case CHIP_ERROR_INVALID_MESSAGE_TYPE.AsInteger(): desc = "Invalid message type"; break; case CHIP_ERROR_UNEXPECTED_TLV_ELEMENT.AsInteger(): desc = "Unexpected TLV element"; break; - case CHIP_ERROR_STATUS_REPORT_RECEIVED.AsInteger(): - desc = "Status Report received from peer"; - break; case CHIP_ERROR_NOT_IMPLEMENTED.AsInteger(): desc = "Not Implemented"; break; @@ -215,18 +194,9 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_INSUFFICIENT_PRIVILEGE.AsInteger(): desc = "Required privilege was insufficient during an operation"; break; - case CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_IB.AsInteger(): - desc = "Malformed Interacton Model Attribute Report IB"; - break; case CHIP_ERROR_IM_MALFORMED_COMMAND_DATA_IB.AsInteger(): desc = "Malformed Interacton Model Command Data IB"; break; - case CHIP_ERROR_IM_MALFORMED_EVENT_STATUS_IB.AsInteger(): - desc = "Malformed Interacton Model Event Status IB"; - break; - case CHIP_ERROR_IM_MALFORMED_STATUS_RESPONSE_MESSAGE.AsInteger(): - desc = "Malformed Interacton Model Status Response IB"; - break; case CHIP_ERROR_INVALID_PATH_LIST.AsInteger(): desc = "Invalid TLV path list"; break; @@ -236,12 +206,6 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_TRANSACTION_CANCELED.AsInteger(): desc = "Transaction canceled"; break; - case CHIP_ERROR_LISTENER_ALREADY_STARTED.AsInteger(): - desc = "Listener already started"; - break; - case CHIP_ERROR_LISTENER_ALREADY_STOPPED.AsInteger(): - desc = "Listener already stopped"; - break; case CHIP_ERROR_INVALID_SUBSCRIPTION.AsInteger(): desc = "Invalid Subscription Id"; break; @@ -251,33 +215,12 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR.AsInteger(): desc = "Invalid device descriptor"; break; - case CHIP_ERROR_UNSUPPORTED_DEVICE_DESCRIPTOR_VERSION.AsInteger(): - desc = "Unsupported device descriptor version"; - break; case CHIP_END_OF_INPUT.AsInteger(): desc = "End of input"; break; - case CHIP_ERROR_RATE_LIMIT_EXCEEDED.AsInteger(): - desc = "Rate limit exceeded"; - break; - case CHIP_ERROR_SECURITY_MANAGER_BUSY.AsInteger(): - desc = "Security manager busy"; - break; case CHIP_ERROR_INVALID_PASE_PARAMETER.AsInteger(): desc = "Invalid PASE parameter"; break; - case CHIP_ERROR_PASE_SUPPORTS_ONLY_CONFIG1.AsInteger(): - desc = "PASE supports only Config1"; - break; - case CHIP_ERROR_NO_COMMON_PASE_CONFIGURATIONS.AsInteger(): - desc = "No supported PASE configurations in common"; - break; - case CHIP_ERROR_INVALID_PASE_CONFIGURATION.AsInteger(): - desc = "Invalid PASE configuration"; - break; - case CHIP_ERROR_KEY_CONFIRMATION_FAILED.AsInteger(): - desc = "Key confirmation failed"; - break; case CHIP_ERROR_INVALID_USE_OF_SESSION_KEY.AsInteger(): desc = "Invalid use of session key"; break; @@ -290,24 +233,9 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_RANDOM_DATA_UNAVAILABLE.AsInteger(): desc = "Random data unavailable"; break; - case CHIP_ERROR_UNSUPPORTED_HOST_PORT_ELEMENT.AsInteger(): - desc = "Unsupported type in host/port list"; - break; - case CHIP_ERROR_INVALID_HOST_SUFFIX_INDEX.AsInteger(): - desc = "Invalid suffix index in host/port list"; - break; case CHIP_ERROR_HOST_PORT_LIST_EMPTY.AsInteger(): desc = "Host/port empty"; break; - case CHIP_ERROR_UNSUPPORTED_AUTH_MODE.AsInteger(): - desc = "Unsupported authentication mode"; - break; - case CHIP_ERROR_INVALID_SERVICE_EP.AsInteger(): - desc = "Invalid service endpoint"; - break; - case CHIP_ERROR_INVALID_DIRECTORY_ENTRY_TYPE.AsInteger(): - desc = "Invalid directory entry type"; - break; case CHIP_ERROR_FORCED_RESET.AsInteger(): desc = "Service manager forced reset"; break; @@ -320,9 +248,6 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_NOT_CONNECTED.AsInteger(): desc = "Not connected"; break; - case CHIP_ERROR_NO_SW_UPDATE_AVAILABLE.AsInteger(): - desc = "No SW update available"; - break; case CHIP_ERROR_CA_CERT_NOT_FOUND.AsInteger(): desc = "CA certificate not found"; break; @@ -347,75 +272,27 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_UNSUPPORTED_ELLIPTIC_CURVE.AsInteger(): desc = "Unsupported elliptic curve"; break; - case CHIP_CERT_NOT_USED.AsInteger(): - desc = "Certificate was not used in chain validation"; - break; case CHIP_ERROR_CERT_NOT_FOUND.AsInteger(): desc = "Certificate not found"; break; case CHIP_ERROR_INVALID_CASE_PARAMETER.AsInteger(): desc = "Invalid CASE parameter"; break; - case CHIP_ERROR_UNSUPPORTED_CASE_CONFIGURATION.AsInteger(): - desc = "Unsupported CASE configuration"; - break; case CHIP_ERROR_CERT_LOAD_FAILED.AsInteger(): desc = "Unable to load certificate"; break; case CHIP_ERROR_CERT_NOT_TRUSTED.AsInteger(): desc = "Certificate not trusted"; break; - case CHIP_ERROR_INVALID_ACCESS_TOKEN.AsInteger(): - desc = "Invalid access token"; - break; case CHIP_ERROR_WRONG_CERT_DN.AsInteger(): desc = "Wrong certificate distinguished name"; break; - case CHIP_ERROR_INVALID_PROVISIONING_BUNDLE.AsInteger(): - desc = "Invalid provisioning bundle"; - break; - case CHIP_ERROR_PROVISIONING_BUNDLE_DECRYPTION_ERROR.AsInteger(): - desc = "Provisioning bundle decryption error"; - break; - case CHIP_ERROR_PASE_RECONFIGURE_REQUIRED.AsInteger(): - desc = "PASE reconfiguration required"; - break; case CHIP_ERROR_WRONG_NODE_ID.AsInteger(): desc = "Wrong node ID"; break; - case CHIP_ERROR_CONN_ACCEPTED_ON_WRONG_PORT.AsInteger(): - desc = "Connection accepted on wrong port"; - break; - case CHIP_ERROR_CALLBACK_REPLACED.AsInteger(): - desc = "Application callback replaced"; - break; - case CHIP_ERROR_NO_CASE_AUTH_DELEGATE.AsInteger(): - desc = "No CASE auth delegate set"; - break; - case CHIP_ERROR_DEVICE_LOCATE_TIMEOUT.AsInteger(): - desc = "Timeout attempting to locate device"; - break; - case CHIP_ERROR_DEVICE_CONNECT_TIMEOUT.AsInteger(): - desc = "Timeout connecting to device"; - break; - case CHIP_ERROR_DEVICE_AUTH_TIMEOUT.AsInteger(): - desc = "Timeout authenticating device"; - break; - case CHIP_ERROR_MESSAGE_NOT_ACKNOWLEDGED.AsInteger(): - desc = "Message not acknowledged after max retries"; - break; case CHIP_ERROR_RETRANS_TABLE_FULL.AsInteger(): desc = "Retransmit Table is already full"; break; - case CHIP_ERROR_INVALID_ACK_MESSAGE_COUNTER.AsInteger(): - desc = "Invalid acknowledged message counter"; - break; - case CHIP_ERROR_SEND_THROTTLED.AsInteger(): - desc = "Sending to peer is throttled on this Exchange"; - break; - case CHIP_ERROR_WRONG_MSG_VERSION_FOR_EXCHANGE.AsInteger(): - desc = "Message version not supported by current exchange context"; - break; case CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE.AsInteger(): desc = "Required feature not supported by this configuration"; break; @@ -434,111 +311,33 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_CANCELLED.AsInteger(): desc = "The operation has been cancelled"; break; - case CHIP_ERROR_DRBG_ENTROPY_SOURCE_FAILED.AsInteger(): - desc = "DRBG entropy source failed to generate entropy data"; - break; case CHIP_ERROR_MESSAGE_COUNTER_EXHAUSTED.AsInteger(): desc = "Message counter exhausted"; break; case CHIP_ERROR_FABRIC_EXISTS.AsInteger(): desc = "Trying to add a NOC for a fabric that already exists"; break; - case CHIP_ERROR_KEY_NOT_FOUND_FROM_PEER.AsInteger(): - desc = "Key not found error code received from peer"; - break; case CHIP_ERROR_WRONG_ENCRYPTION_TYPE_FROM_PEER.AsInteger(): desc = "Wrong encryption type error code received from peer"; break; - case CHIP_ERROR_UNKNOWN_KEY_TYPE_FROM_PEER.AsInteger(): - desc = "Unknown key type error code received from peer"; - break; - case CHIP_ERROR_INVALID_USE_OF_SESSION_KEY_FROM_PEER.AsInteger(): - desc = "Invalid use of session key error code received from peer"; - break; - case CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE_FROM_PEER.AsInteger(): - desc = "Unsupported encryption type error code received from peer"; - break; - case CHIP_ERROR_INTERNAL_KEY_ERROR_FROM_PEER.AsInteger(): - desc = "Internal key error code received from peer"; - break; case CHIP_ERROR_INVALID_KEY_ID.AsInteger(): desc = "Invalid key identifier"; break; case CHIP_ERROR_INVALID_TIME.AsInteger(): desc = "Valid time value is not available"; break; - case CHIP_ERROR_LOCKING_FAILURE.AsInteger(): - desc = "Failure to lock/unlock OS-provided lock"; - break; - case CHIP_ERROR_UNSUPPORTED_PASSCODE_CONFIG.AsInteger(): - desc = "Unsupported passcode encryption configuration"; - break; - case CHIP_ERROR_PASSCODE_AUTHENTICATION_FAILED.AsInteger(): - desc = "Passcode authentication failed"; - break; - case CHIP_ERROR_PASSCODE_FINGERPRINT_FAILED.AsInteger(): - desc = "Passcode fingerprint failed"; - break; - case CHIP_ERROR_SERIALIZATION_ELEMENT_NULL.AsInteger(): - desc = "Element requested is null"; - break; - case CHIP_ERROR_WRONG_CERT_SIGNATURE_ALGORITHM.AsInteger(): - desc = "Certificate not signed with required signature algorithm"; - break; - case CHIP_ERROR_WRONG_CHIP_SIGNATURE_ALGORITHM.AsInteger(): - desc = "CHIP signature not signed with required signature algorithm"; - break; case CHIP_ERROR_SCHEMA_MISMATCH.AsInteger(): desc = "Schema mismatch"; break; case CHIP_ERROR_INVALID_INTEGER_VALUE.AsInteger(): desc = "Invalid integer value"; break; - case CHIP_ERROR_CASE_RECONFIG_REQUIRED.AsInteger(): - desc = "CASE reconfiguration required"; - break; - case CHIP_ERROR_TOO_MANY_CASE_RECONFIGURATIONS.AsInteger(): - desc = "Too many CASE reconfigurations were received"; - break; case CHIP_ERROR_BAD_REQUEST.AsInteger(): desc = "Request cannot be processed or fulfilled"; break; - case CHIP_ERROR_INVALID_MESSAGE_FLAG.AsInteger(): - desc = "Invalid message flag"; - break; - case CHIP_ERROR_KEY_EXPORT_RECONFIGURE_REQUIRED.AsInteger(): - desc = "Key export protocol required to reconfigure"; - break; - case CHIP_ERROR_NO_COMMON_KEY_EXPORT_CONFIGURATIONS.AsInteger(): - desc = "No supported key export protocol configurations in common"; - break; - case CHIP_ERROR_INVALID_KEY_EXPORT_CONFIGURATION.AsInteger(): - desc = "Invalid key export protocol configuration"; - break; - case CHIP_ERROR_NO_KEY_EXPORT_DELEGATE.AsInteger(): - desc = "No key export protocol delegate set"; - break; - case CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_REQUEST.AsInteger(): - desc = "Unauthorized key export request"; - break; - case CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_RESPONSE.AsInteger(): - desc = "Unauthorized key export response"; - break; - case CHIP_ERROR_EXPORTED_KEY_AUTHENTICATION_FAILED.AsInteger(): - desc = "Exported key authentication failed"; - break; - case CHIP_ERROR_TOO_MANY_SHARED_SESSION_END_NODES.AsInteger(): - desc = "Too many shared session end nodes"; - break; - case CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_DATA_IB.AsInteger(): - desc = "Malformed Interaction Model Attribute Data IB"; - break; case CHIP_ERROR_WRONG_CERT_TYPE.AsInteger(): desc = "Wrong certificate type"; break; - case CHIP_ERROR_DEFAULT_EVENT_HANDLER_NOT_CALLED.AsInteger(): - desc = "Default event handler not called"; - break; case CHIP_ERROR_PERSISTED_STORAGE_FAILED.AsInteger(): desc = "Persisted storage failed"; break; @@ -548,12 +347,6 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_IM_FABRIC_DELETED.AsInteger(): desc = "The fabric is deleted, and the corresponding IM resources are released"; break; - case CHIP_ERROR_PROFILE_STRING_CONTEXT_NOT_REGISTERED.AsInteger(): - desc = "String context not registered"; - break; - case CHIP_ERROR_INCOMPATIBLE_SCHEMA_VERSION.AsInteger(): - desc = "Incompatible data schema version"; - break; case CHIP_ERROR_ACCESS_DENIED.AsInteger(): desc = "The CHIP message is not granted access"; break; @@ -563,15 +356,6 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_VERSION_MISMATCH.AsInteger(): desc = "Version mismatch"; break; - case CHIP_ERROR_UNSUPPORTED_THREAD_NETWORK_CREATE.AsInteger(): - desc = "Legacy device doesn't support standalone Thread network creation"; - break; - case CHIP_ERROR_INCONSISTENT_CONDITIONALITY.AsInteger(): - desc = "The Trait Instance is already being updated with a different conditionality"; - break; - case CHIP_ERROR_LOCAL_DATA_INCONSISTENT.AsInteger(): - desc = "The local data does not match any known version of the Trait Instance"; - break; case CHIP_EVENT_ID_FOUND.AsInteger(): desc = "Event ID matching criteria was found"; break; @@ -590,15 +374,6 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_DECODE_FAILED.AsInteger(): desc = "Decoding failed"; break; - case CHIP_ERROR_SESSION_KEY_SUSPENDED.AsInteger(): - desc = "Session key suspended"; - break; - case CHIP_ERROR_UNSUPPORTED_WIRELESS_REGULATORY_DOMAIN.AsInteger(): - desc = "Unsupported wireless regulatory domain"; - break; - case CHIP_ERROR_UNSUPPORTED_WIRELESS_OPERATING_LOCATION.AsInteger(): - desc = "Unsupported wireless operating location"; - break; case CHIP_ERROR_MDNS_COLLISION.AsInteger(): desc = "mDNS collision"; break; @@ -608,27 +383,15 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB.AsInteger(): desc = "Malformed Interacton Model Event Path IB"; break; - case CHIP_ERROR_IM_MALFORMED_COMMAND_PATH_IB.AsInteger(): - desc = "Malformed Interacton Model Command Path IB"; - break; - case CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_STATUS_IB.AsInteger(): - desc = "Malformed Interacton Model Attribute Status IB"; - break; case CHIP_ERROR_IM_MALFORMED_EVENT_DATA_IB.AsInteger(): desc = "Malformed Interacton Model Event Data IB"; break; - case CHIP_ERROR_IM_MALFORMED_STATUS_IB.AsInteger(): - desc = "Malformed Interacton Model Status IB"; - break; case CHIP_ERROR_PEER_NODE_NOT_FOUND.AsInteger(): desc = "Unable to find the peer node"; break; case CHIP_ERROR_HSM.AsInteger(): desc = "Hardware security module"; break; - case CHIP_ERROR_INTERMEDIATE_CA_NOT_REQUIRED.AsInteger(): - desc = "Intermediate CA not required"; - break; case CHIP_ERROR_REAL_TIME_NOT_SYNCED.AsInteger(): desc = "Real time not synchronized"; break; @@ -653,63 +416,18 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_FABRIC_MISMATCH_ON_ICA.AsInteger(): desc = "Fabric mismatch on ICA"; break; - case CHIP_ERROR_MESSAGE_COUNTER_OUT_OF_WINDOW.AsInteger(): - desc = "Message id out of window"; - break; - case CHIP_ERROR_REBOOT_SIGNAL_RECEIVED.AsInteger(): - desc = "Termination signal is received"; - break; case CHIP_ERROR_NO_SHARED_TRUSTED_ROOT.AsInteger(): desc = "No shared trusted root"; break; case CHIP_ERROR_IM_STATUS_CODE_RECEIVED.AsInteger(): desc = "Interaction Model Error"; break; - case CHIP_ERROR_IM_MALFORMED_COMMAND_STATUS_IB.AsInteger(): - desc = "Malformed Interaction Model Command Status IB"; - break; - case CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_IB.AsInteger(): - desc = "Malformed Interaction Model Invoke Response IB"; - break; - case CHIP_ERROR_IM_MALFORMED_INVOKE_REQUEST_MESSAGE.AsInteger(): - desc = "Malformed Interaction Model Invoke Request Message"; - break; - case CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_MESSAGE.AsInteger(): - desc = "Malformed Interaction Model Invoke Response Message"; - break; - case CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_MESSAGE.AsInteger(): - desc = "Malformed Interaction Model Attribute Report Message"; - break; - case CHIP_ERROR_IM_MALFORMED_WRITE_REQUEST_MESSAGE.AsInteger(): - desc = "Malformed Interaction Model Write Request Message"; - break; - case CHIP_ERROR_IM_MALFORMED_EVENT_FILTER_IB.AsInteger(): - desc = "Malformed Interaction Model Event Filter IB"; - break; - case CHIP_ERROR_IM_MALFORMED_READ_REQUEST_MESSAGE.AsInteger(): - desc = "Malformed Interaction Model Read Request Message"; - break; - case CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_REQUEST_MESSAGE.AsInteger(): - desc = "Malformed Interaction Model Subscribe Request Message"; - break; - case CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_RESPONSE_MESSAGE.AsInteger(): - desc = "Malformed Interaction Model Subscribe Response Message"; - break; - case CHIP_ERROR_IM_MALFORMED_EVENT_REPORT_IB.AsInteger(): - desc = "Malformed Interaction Model Event Report IB"; - break; - case CHIP_ERROR_IM_MALFORMED_CLUSTER_PATH_IB.AsInteger(): - desc = "Malformed Interaction Model Cluster Path IB"; - break; case CHIP_ERROR_IM_MALFORMED_DATA_VERSION_FILTER_IB.AsInteger(): desc = "Malformed Interaction Model Data Version Filter IB"; break; case CHIP_ERROR_NOT_FOUND.AsInteger(): desc = "The item referenced in the function call was not found"; break; - case CHIP_ERROR_IM_MALFORMED_TIMED_REQUEST_MESSAGE.AsInteger(): - desc = "Malformed Interaction Model Timed Request Message"; - break; case CHIP_ERROR_INVALID_FILE_IDENTIFIER.AsInteger(): desc = "The file identifier, encoded in the first few bytes of a processed file, has unexpected value"; break; @@ -722,9 +440,6 @@ bool FormatCHIPError(char * buf, uint16_t bufSize, CHIP_ERROR err) case CHIP_ERROR_PROVIDER_LIST_EXHAUSTED.AsInteger(): desc = "The provider list has been exhausted"; break; - case CHIP_ERROR_ANOTHER_COMMISSIONING_IN_PROGRESS.AsInteger(): - desc = "Another commissioning in progress"; - break; case CHIP_ERROR_INVALID_SCHEME_PREFIX.AsInteger(): desc = "The scheme field contains an invalid prefix"; break; diff --git a/src/lib/core/CHIPError.h b/src/lib/core/CHIPError.h index 0483c4d76abaed..eb5d0d04188e89 100644 --- a/src/lib/core/CHIPError.h +++ b/src/lib/core/CHIPError.h @@ -585,15 +585,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_WRONG_ENCRYPTION_TYPE CHIP_CORE_ERROR(0x11) -/** - * @def CHIP_ERROR_TOO_MANY_KEYS - * - * @brief - * The attempt to allocate a key failed because the number of active keys - * exceeds the maximum limit. - * - */ -#define CHIP_ERROR_TOO_MANY_KEYS CHIP_CORE_ERROR(0x12) +// AVAILABLE: 0x12 /** * @def CHIP_ERROR_INTEGRITY_CHECK_FAILED @@ -614,23 +606,8 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_INVALID_SIGNATURE CHIP_CORE_ERROR(0x14) -/** - * @def CHIP_ERROR_UNSUPPORTED_MESSAGE_VERSION - * - * @brief - * A message version is unsupported. - * - */ -#define CHIP_ERROR_UNSUPPORTED_MESSAGE_VERSION CHIP_CORE_ERROR(0x15) - -/** - * @def CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE - * - * @brief - * An encryption type is unsupported. - * - */ -#define CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE CHIP_CORE_ERROR(0x16) +// AVAILABLE: 0x15 +// AVAILABLE: 0x16 /** * @def CHIP_ERROR_UNSUPPORTED_SIGNATURE_TYPE @@ -713,14 +690,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_INVALID_LIST_LENGTH CHIP_CORE_ERROR(0x1f) -/** - * @def CHIP_ERROR_INVALID_INTEGRITY_TYPE - * - * @brief - * An integrity type is invalid. - * - */ -#define CHIP_ERROR_INVALID_INTEGRITY_TYPE CHIP_CORE_ERROR(0x20) +// AVAILABLE: 0x20 /** * @def CHIP_END_OF_TLV @@ -788,23 +758,8 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_TLV_CONTAINER_OPEN CHIP_CORE_ERROR(0x27) -/** - * @def CHIP_ERROR_INVALID_TRANSFER_MODE - * - * @brief - * A transfer mode is invalid. - * - */ -#define CHIP_ERROR_INVALID_TRANSFER_MODE CHIP_CORE_ERROR(0x28) - -/** - * @def CHIP_ERROR_INVALID_PROFILE_ID - * - * @brief - * A profile id is invalid. - * - */ -#define CHIP_ERROR_INVALID_PROFILE_ID CHIP_CORE_ERROR(0x29) +// AVAILABLE: 0x28 +// AVAILABLE: 0x29 /** * @def CHIP_ERROR_INVALID_MESSAGE_TYPE @@ -824,14 +779,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_UNEXPECTED_TLV_ELEMENT CHIP_CORE_ERROR(0x2b) -/** - * @def CHIP_ERROR_STATUS_REPORT_RECEIVED - * - * @brief - * A status report is received from a peer node. - * - */ -#define CHIP_ERROR_STATUS_REPORT_RECEIVED CHIP_CORE_ERROR(0x2c) +// AVAILABLE: 0x2c /** * @def CHIP_ERROR_NOT_IMPLEMENTED @@ -896,14 +844,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR CHIP_CORE_ERROR(0x33) -/** - * @def CHIP_ERROR_UNSUPPORTED_DEVICE_DESCRIPTOR_VERSION - * - * @brief - * A device descriptor version is unsupported. - * - */ -#define CHIP_ERROR_UNSUPPORTED_DEVICE_DESCRIPTOR_VERSION CHIP_CORE_ERROR(0x34) +// AVAILABLE: 0x34 /** * @def CHIP_END_OF_INPUT @@ -915,23 +856,8 @@ using CHIP_ERROR = ::chip::ChipError; #define CHIP_ERROR_END_OF_INPUT CHIP_CORE_ERROR(0x35) #define CHIP_END_OF_INPUT CHIP_ERROR_END_OF_INPUT -/** - * @def CHIP_ERROR_RATE_LIMIT_EXCEEDED - * - * @brief - * A rate limit is exceeded. - * - */ -#define CHIP_ERROR_RATE_LIMIT_EXCEEDED CHIP_CORE_ERROR(0x36) - -/** - * @def CHIP_ERROR_SECURITY_MANAGER_BUSY - * - * @brief - * A security manager is busy. - * - */ -#define CHIP_ERROR_SECURITY_MANAGER_BUSY CHIP_CORE_ERROR(0x37) +// AVAILABLE: 0x36 +// AVAILABLE: 0x37 /** * @def CHIP_ERROR_INVALID_PASE_PARAMETER @@ -942,23 +868,8 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_INVALID_PASE_PARAMETER CHIP_CORE_ERROR(0x38) -/** - * @def CHIP_ERROR_PASE_SUPPORTS_ONLY_CONFIG1 - * - * @brief - * PASE supports only config1. - * - */ -#define CHIP_ERROR_PASE_SUPPORTS_ONLY_CONFIG1 CHIP_CORE_ERROR(0x39) - -/** - * @def CHIP_ERROR_KEY_CONFIRMATION_FAILED - * - * @brief - * A key confirmation failed. - * - */ -#define CHIP_ERROR_KEY_CONFIRMATION_FAILED CHIP_CORE_ERROR(0x3a) +// AVAILABLE: 0x39 +// AVAILABLE: 0x3a /** * @def CHIP_ERROR_INVALID_USE_OF_SESSION_KEY @@ -996,23 +907,8 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_RANDOM_DATA_UNAVAILABLE CHIP_CORE_ERROR(0x3e) -/** - * @def CHIP_ERROR_UNSUPPORTED_HOST_PORT_ELEMENT - * - * @brief - * A type in host/port list is unsupported. - * - */ -#define CHIP_ERROR_UNSUPPORTED_HOST_PORT_ELEMENT CHIP_CORE_ERROR(0x3f) - -/** - * @def CHIP_ERROR_INVALID_HOST_SUFFIX_INDEX - * - * @brief - * A suffix index in host/port list is invalid. - * - */ -#define CHIP_ERROR_INVALID_HOST_SUFFIX_INDEX CHIP_CORE_ERROR(0x40) +// AVAILABLE: 0x3f +// AVAILABLE: 0x40 /** * @def CHIP_ERROR_HOST_PORT_LIST_EMPTY @@ -1023,32 +919,9 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_HOST_PORT_LIST_EMPTY CHIP_CORE_ERROR(0x41) -/** - * @def CHIP_ERROR_UNSUPPORTED_AUTH_MODE - * - * @brief - * An authentication mode is unsupported. - * - */ -#define CHIP_ERROR_UNSUPPORTED_AUTH_MODE CHIP_CORE_ERROR(0x42) - -/** - * @def CHIP_ERROR_INVALID_SERVICE_EP - * - * @brief - * A service endpoint is invalid. - * - */ -#define CHIP_ERROR_INVALID_SERVICE_EP CHIP_CORE_ERROR(0x43) - -/** - * @def CHIP_ERROR_INVALID_DIRECTORY_ENTRY_TYPE - * - * @brief - * A directory entry type is unknown. - * - */ -#define CHIP_ERROR_INVALID_DIRECTORY_ENTRY_TYPE CHIP_CORE_ERROR(0x44) +// AVAILABLE: 0x42 +// AVAILABLE: 0x43 +// AVAILABLE: 0x44 /** * @def CHIP_ERROR_FORCED_RESET @@ -1087,14 +960,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_NOT_CONNECTED CHIP_CORE_ERROR(0x48) -/** - * @def CHIP_ERROR_NO_SW_UPDATE_AVAILABLE - * - * @brief - * No software update is available. - * - */ -#define CHIP_ERROR_NO_SW_UPDATE_AVAILABLE CHIP_CORE_ERROR(0x49) +// AVAILABLE: 0x49 /** * @def CHIP_ERROR_CA_CERT_NOT_FOUND @@ -1168,15 +1034,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_UNSUPPORTED_ELLIPTIC_CURVE CHIP_CORE_ERROR(0x51) -/** - * @def CHIP_CERT_NOT_USED - * - * @brief - * A certificate was not used during the chain validation. - * - */ -#define CHIP_ERROR_CERT_NOT_USED CHIP_CORE_ERROR(0x52) -#define CHIP_CERT_NOT_USED CHIP_ERROR_CERT_NOT_USED +// AVAILABLE: 0x52 /** * @def CHIP_ERROR_CERT_NOT_FOUND @@ -1196,14 +1054,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_INVALID_CASE_PARAMETER CHIP_CORE_ERROR(0x54) -/** - * @def CHIP_ERROR_UNSUPPORTED_CASE_CONFIGURATION - * - * @brief - * A CASE configuration is unsupported. - * - */ -#define CHIP_ERROR_UNSUPPORTED_CASE_CONFIGURATION CHIP_CORE_ERROR(0x55) +// AVAILABLE: 0x55 /** * @def CHIP_ERROR_CERT_LOAD_FAILED @@ -1223,14 +1074,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_CERT_NOT_TRUSTED CHIP_CORE_ERROR(0x57) -/** - * @def CHIP_ERROR_INVALID_ACCESS_TOKEN - * - * @brief - * An access token is invalid. - * - */ -#define CHIP_ERROR_INVALID_ACCESS_TOKEN CHIP_CORE_ERROR(0x58) +// AVAILABLE: 0x58 /** * @def CHIP_ERROR_WRONG_CERT_DN @@ -1241,23 +1085,8 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_WRONG_CERT_DN CHIP_CORE_ERROR(0x59) -/** - * @def CHIP_ERROR_INVALID_PROVISIONING_BUNDLE - * - * @brief - * A provisioning bundle is invalid. - * - */ -#define CHIP_ERROR_INVALID_PROVISIONING_BUNDLE CHIP_CORE_ERROR(0x5a) - -/** - * @def CHIP_ERROR_PROVISIONING_BUNDLE_DECRYPTION_ERROR - * - * @brief - * A provision bundle encountered a decryption error. - * - */ -#define CHIP_ERROR_PROVISIONING_BUNDLE_DECRYPTION_ERROR CHIP_CORE_ERROR(0x5b) +// AVAILABLE: 0x5a +// AVAILABLE: 0x5b /** * @def CHIP_ERROR_WRONG_NODE_ID @@ -1268,68 +1097,13 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_WRONG_NODE_ID CHIP_CORE_ERROR(0x5c) -/** - * @def CHIP_ERROR_CONN_ACCEPTED_ON_WRONG_PORT - * - * @brief - * A connection is accepted on a wrong port. - * - */ -#define CHIP_ERROR_CONN_ACCEPTED_ON_WRONG_PORT CHIP_CORE_ERROR(0x5d) - -/** - * @def CHIP_ERROR_CALLBACK_REPLACED - * - * @brief - * An application callback has been replaced. - * - */ -#define CHIP_ERROR_CALLBACK_REPLACED CHIP_CORE_ERROR(0x5e) - -/** - * @def CHIP_ERROR_NO_CASE_AUTH_DELEGATE - * - * @brief - * No CASE authentication delegate is set. - * - */ -#define CHIP_ERROR_NO_CASE_AUTH_DELEGATE CHIP_CORE_ERROR(0x5f) - -/** - * @def CHIP_ERROR_DEVICE_LOCATE_TIMEOUT - * - * @brief - * The attempt to locate device timed out. - * - */ -#define CHIP_ERROR_DEVICE_LOCATE_TIMEOUT CHIP_CORE_ERROR(0x60) - -/** - * @def CHIP_ERROR_DEVICE_CONNECT_TIMEOUT - * - * @brief - * The attempt to connect device timed out. - * - */ -#define CHIP_ERROR_DEVICE_CONNECT_TIMEOUT CHIP_CORE_ERROR(0x61) - -/** - * @def CHIP_ERROR_DEVICE_AUTH_TIMEOUT - * - * @brief - * The attempt to authenticate device timed out. - * - */ -#define CHIP_ERROR_DEVICE_AUTH_TIMEOUT CHIP_CORE_ERROR(0x62) - -/** - * @def CHIP_ERROR_MESSAGE_NOT_ACKNOWLEDGED - * - * @brief - * A message is not acknowledged after max retries. - * - */ -#define CHIP_ERROR_MESSAGE_NOT_ACKNOWLEDGED CHIP_CORE_ERROR(0x63) +// AVAILABLE: 0x5d +// AVAILABLE: 0x5e +// AVAILABLE: 0x5f +// AVAILABLE: 0x60 +// AVAILABLE: 0x61 +// AVAILABLE: 0x62 +// AVAILABLE: 0x63 /** * @def CHIP_ERROR_RETRANS_TABLE_FULL @@ -1340,32 +1114,9 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_RETRANS_TABLE_FULL CHIP_CORE_ERROR(0x64) -/** - * @def CHIP_ERROR_INVALID_ACK_MESSAGE_COUNTER - * - * @brief - * An acknowledgment id is invalid. - * - */ -#define CHIP_ERROR_INVALID_ACK_MESSAGE_COUNTER CHIP_CORE_ERROR(0x65) - -/** - * @def CHIP_ERROR_SEND_THROTTLED - * - * @brief - * A send is throttled. - * - */ -#define CHIP_ERROR_SEND_THROTTLED CHIP_CORE_ERROR(0x66) - -/** - * @def CHIP_ERROR_WRONG_MSG_VERSION_FOR_EXCHANGE - * - * @brief - * A message version is not supported by the current exchange context. - * - */ -#define CHIP_ERROR_WRONG_MSG_VERSION_FOR_EXCHANGE CHIP_CORE_ERROR(0x67) +// AVAILABLE: 0x65 +// AVAILABLE: 0x66 +// AVAILABLE: 0x67 /** * @def CHIP_ERROR_TRANSACTION_CANCELED @@ -1376,23 +1127,8 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_TRANSACTION_CANCELED CHIP_CORE_ERROR(0x68) -/** - * @def CHIP_ERROR_LISTENER_ALREADY_STARTED - * - * @brief - * A listener has already started. - * - */ -#define CHIP_ERROR_LISTENER_ALREADY_STARTED CHIP_CORE_ERROR(0x69) - -/** - * @def CHIP_ERROR_LISTENER_ALREADY_STOPPED - * - * @brief - * A listener has already stopped. - * - */ -#define CHIP_ERROR_LISTENER_ALREADY_STOPPED CHIP_CORE_ERROR(0x6a) +// AVAILABLE: 0x69 +// AVAILABLE: 0x6a /** * @def CHIP_ERROR_INVALID_SUBSCRIPTION @@ -1412,33 +1148,6 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE CHIP_CORE_ERROR(0x6c) -/** - * @def CHIP_ERROR_PASE_RECONFIGURE_REQUIRED - * - * @brief - * PASE is required to reconfigure. - * - */ -#define CHIP_ERROR_PASE_RECONFIGURE_REQUIRED CHIP_CORE_ERROR(0x6d) - -/** - * @def CHIP_ERROR_INVALID_PASE_CONFIGURATION - * - * @brief - * A PASE configuration is invalid. - * - */ -#define CHIP_ERROR_INVALID_PASE_CONFIGURATION CHIP_CORE_ERROR(0x6e) - -/** - * @def CHIP_ERROR_NO_COMMON_PASE_CONFIGURATIONS - * - * @brief - * No PASE configuration is in common. - * - */ -#define CHIP_ERROR_NO_COMMON_PASE_CONFIGURATIONS CHIP_CORE_ERROR(0x6f) - /** * @def CHIP_ERROR_UNSOLICITED_MSG_NO_ORIGINATOR * @@ -1483,14 +1192,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_CANCELLED CHIP_CORE_ERROR(0x74) -/** - * @def CHIP_ERROR_DRBG_ENTROPY_SOURCE_FAILED - * - * @brief - * DRBG entropy source failed to generate entropy data. - * - */ -#define CHIP_ERROR_DRBG_ENTROPY_SOURCE_FAILED CHIP_CORE_ERROR(0x75) +// AVAILABLE: 0x75 /** * @def CHIP_ERROR_TLV_TAG_NOT_FOUND @@ -1528,32 +1230,9 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_INSUFFICIENT_PRIVILEGE CHIP_CORE_ERROR(0x79) -/** - * @def CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_IB - * - * @brief - * The Attribute Report IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_IB CHIP_CORE_ERROR(0x7a) - -/** - * @def CHIP_ERROR_IM_MALFORMED_EVENT_STATUS_IB - * - * @brief - * The Event Status IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_EVENT_STATUS_IB CHIP_CORE_ERROR(0x7b) - -/** - * @def CHIP_ERROR_IM_MALFORMED_STATUS_RESPONSE_MESSAGE - * - * @brief - * The Status Response Message is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_STATUS_RESPONSE_MESSAGE CHIP_CORE_ERROR(0x7c) +// AVAILABLE: 0x7a +// AVAILABLE: 0x7b +// AVAILABLE: 0x7c /** * @def CHIP_ERROR_MESSAGE_COUNTER_EXHAUSTED @@ -1572,14 +1251,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_FABRIC_EXISTS CHIP_CORE_ERROR(0x7e) -/** - * @def CHIP_ERROR_KEY_NOT_FOUND_FROM_PEER - * - * @brief - * The encryption key is not found error received from a peer node. - * - */ -#define CHIP_ERROR_KEY_NOT_FOUND_FROM_PEER CHIP_CORE_ERROR(0x7f) +// AVAILABLE: 0x7f /** * @def CHIP_ERROR_WRONG_ENCRYPTION_TYPE_FROM_PEER @@ -1590,258 +1262,77 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_WRONG_ENCRYPTION_TYPE_FROM_PEER CHIP_CORE_ERROR(0x80) +// AVAILABLE: 0x81 +// AVAILABLE: 0x82 +// AVAILABLE: 0x83 +// AVAILABLE: 0x84 + /** - * @def CHIP_ERROR_UNKNOWN_KEY_TYPE_FROM_PEER + * @def CHIP_ERROR_INVALID_KEY_ID * * @brief - * The unknown key type error received from a peer node. + * A key id is invalid. * */ -#define CHIP_ERROR_UNKNOWN_KEY_TYPE_FROM_PEER CHIP_CORE_ERROR(0x81) +#define CHIP_ERROR_INVALID_KEY_ID CHIP_CORE_ERROR(0x85) /** - * @def CHIP_ERROR_INVALID_USE_OF_SESSION_KEY_FROM_PEER + * @def CHIP_ERROR_INVALID_TIME * * @brief - * The invalid use of session key error received from a peer node. + * Time has invalid value. * */ -#define CHIP_ERROR_INVALID_USE_OF_SESSION_KEY_FROM_PEER CHIP_CORE_ERROR(0x82) +#define CHIP_ERROR_INVALID_TIME CHIP_CORE_ERROR(0x86) + +// AVAILABLE: 0x87 +// AVAILABLE: 0x88 +// AVAILABLE: 0x89 +// AVAILABLE: 0x8a +// AVAILABLE: 0x8b +// AVAILABLE: 0x8c +// AVAILABLE: 0x8d /** - * @def CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE_FROM_PEER + * @def CHIP_ERROR_SCHEMA_MISMATCH * * @brief - * An unsupported encryption type error received from a peer node. + * A mismatch in schema was encountered. * */ -#define CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE_FROM_PEER CHIP_CORE_ERROR(0x83) +#define CHIP_ERROR_SCHEMA_MISMATCH CHIP_CORE_ERROR(0x8e) /** - * @def CHIP_ERROR_INTERNAL_KEY_ERROR_FROM_PEER + * @def CHIP_ERROR_INVALID_INTEGER_VALUE * * @brief - * The internal key error received from a peer node. + * An integer does not have the kind of value we expect. * */ -#define CHIP_ERROR_INTERNAL_KEY_ERROR_FROM_PEER CHIP_CORE_ERROR(0x84) +#define CHIP_ERROR_INVALID_INTEGER_VALUE CHIP_CORE_ERROR(0x8f) + +// AVAILABLE: 0x90 +// AVAILABLE: 0x91 /** - * @def CHIP_ERROR_INVALID_KEY_ID + * @def CHIP_ERROR_BAD_REQUEST * * @brief - * A key id is invalid. - * - */ -#define CHIP_ERROR_INVALID_KEY_ID CHIP_CORE_ERROR(0x85) - -/** - * @def CHIP_ERROR_INVALID_TIME - * - * @brief - * Time has invalid value. - * - */ -#define CHIP_ERROR_INVALID_TIME CHIP_CORE_ERROR(0x86) - -/** - * @def CHIP_ERROR_LOCKING_FAILURE - * - * @brief - * Failure to acquire or release an OS provided mutex. - * - */ -#define CHIP_ERROR_LOCKING_FAILURE CHIP_CORE_ERROR(0x87) - -/** - * @def CHIP_ERROR_UNSUPPORTED_PASSCODE_CONFIG - * - * @brief - * A passcode encryption configuration is unsupported. - * - */ -#define CHIP_ERROR_UNSUPPORTED_PASSCODE_CONFIG CHIP_CORE_ERROR(0x88) - -/** - * @def CHIP_ERROR_PASSCODE_AUTHENTICATION_FAILED - * - * @brief - * The CHIP passcode authentication failed. - * - */ -#define CHIP_ERROR_PASSCODE_AUTHENTICATION_FAILED CHIP_CORE_ERROR(0x89) - -/** - * @def CHIP_ERROR_PASSCODE_FINGERPRINT_FAILED - * - * @brief - * The CHIP passcode fingerprint failed. - * - */ -#define CHIP_ERROR_PASSCODE_FINGERPRINT_FAILED CHIP_CORE_ERROR(0x8a) - -/** - * @def CHIP_ERROR_SERIALIZATION_ELEMENT_NULL - * - * @brief - * The element of the struct is null. - * - */ -#define CHIP_ERROR_SERIALIZATION_ELEMENT_NULL CHIP_CORE_ERROR(0x8b) - -/** - * @def CHIP_ERROR_WRONG_CERT_SIGNATURE_ALGORITHM - * - * @brief - * The certificate was not signed using the required signature algorithm. - * - */ -#define CHIP_ERROR_WRONG_CERT_SIGNATURE_ALGORITHM CHIP_CORE_ERROR(0x8c) - -/** - * @def CHIP_ERROR_WRONG_CHIP_SIGNATURE_ALGORITHM - * - * @brief - * The CHIP signature was not signed using the required signature algorithm. - * - */ -#define CHIP_ERROR_WRONG_CHIP_SIGNATURE_ALGORITHM CHIP_CORE_ERROR(0x8d) - -/** - * @def CHIP_ERROR_SCHEMA_MISMATCH - * - * @brief - * A mismatch in schema was encountered. - * - */ -#define CHIP_ERROR_SCHEMA_MISMATCH CHIP_CORE_ERROR(0x8e) - -/** - * @def CHIP_ERROR_INVALID_INTEGER_VALUE - * - * @brief - * An integer does not have the kind of value we expect. - * - */ -#define CHIP_ERROR_INVALID_INTEGER_VALUE CHIP_CORE_ERROR(0x8f) - -/** - * @def CHIP_ERROR_CASE_RECONFIG_REQUIRED - * - * @brief - * CASE is required to reconfigure. - * - */ -#define CHIP_ERROR_CASE_RECONFIG_REQUIRED CHIP_CORE_ERROR(0x90) - -/** - * @def CHIP_ERROR_TOO_MANY_CASE_RECONFIGURATIONS - * - * @brief - * Too many CASE reconfigurations were received. - * - */ -#define CHIP_ERROR_TOO_MANY_CASE_RECONFIGURATIONS CHIP_CORE_ERROR(0x91) - -/** - * @def CHIP_ERROR_BAD_REQUEST - * - * @brief - * The request cannot be processed or fulfilled + * The request cannot be processed or fulfilled * */ #define CHIP_ERROR_BAD_REQUEST CHIP_CORE_ERROR(0x92) -/** - * @def CHIP_ERROR_INVALID_MESSAGE_FLAG - * - * @brief - * One or more message flags have invalid value. - * - */ -#define CHIP_ERROR_INVALID_MESSAGE_FLAG CHIP_CORE_ERROR(0x93) - -/** - * @def CHIP_ERROR_KEY_EXPORT_RECONFIGURE_REQUIRED - * - * @brief - * Key export protocol required to reconfigure. - * - */ -#define CHIP_ERROR_KEY_EXPORT_RECONFIGURE_REQUIRED CHIP_CORE_ERROR(0x94) - -/** - * @def CHIP_ERROR_INVALID_KEY_EXPORT_CONFIGURATION - * - * @brief - * A key export protocol configuration is invalid. - * - */ -#define CHIP_ERROR_INVALID_KEY_EXPORT_CONFIGURATION CHIP_CORE_ERROR(0x95) - -/** - * @def CHIP_ERROR_NO_COMMON_KEY_EXPORT_CONFIGURATIONS - * - * @brief - * No key export protocol configuration is in common. - * - */ -#define CHIP_ERROR_NO_COMMON_KEY_EXPORT_CONFIGURATIONS CHIP_CORE_ERROR(0x96) - -/** - * @def CHIP_ERROR_NO_KEY_EXPORT_DELEGATE - * - * @brief - * No key export delegate is set. - * - */ -#define CHIP_ERROR_NO_KEY_EXPORT_DELEGATE CHIP_CORE_ERROR(0x97) - -/** - * @def CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_REQUEST - * - * @brief - * Unauthorized key export request. - * - */ -#define CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_REQUEST CHIP_CORE_ERROR(0x98) - -/** - * @def CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_RESPONSE - * - * @brief - * Unauthorized key export response. - * - */ -#define CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_RESPONSE CHIP_CORE_ERROR(0x99) - -/** - * @def CHIP_ERROR_EXPORTED_KEY_AUTHENTICATION_FAILED - * - * @brief - * The CHIP exported encrypted key authentication failed. - * - */ -#define CHIP_ERROR_EXPORTED_KEY_AUTHENTICATION_FAILED CHIP_CORE_ERROR(0x9a) - -/** - * @def CHIP_ERROR_TOO_MANY_SHARED_SESSION_END_NODES - * - * @brief - * The number of shared secure sessions end nodes exceeds - * the maximum limit. - * - */ -#define CHIP_ERROR_TOO_MANY_SHARED_SESSION_END_NODES CHIP_CORE_ERROR(0x9b) - -/** - * @def CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_DATA_IB - * - * @brief - * The Attribute Data IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_DATA_IB CHIP_CORE_ERROR(0x9c) +// AVAILABLE: 0x93 +// AVAILABLE: 0x94 +// AVAILABLE: 0x95 +// AVAILABLE: 0x96 +// AVAILABLE: 0x97 +// AVAILABLE: 0x98 +// AVAILABLE: 0x99 +// AVAILABLE: 0x9a +// AVAILABLE: 0x9b +// AVAILABLE: 0x9c /** * @def CHIP_ERROR_WRONG_CERT_TYPE @@ -1851,14 +1342,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_WRONG_CERT_TYPE CHIP_CORE_ERROR(0x9d) -/** - * @def CHIP_ERROR_DEFAULT_EVENT_HANDLER_NOT_CALLED - * - * @brief - * The application's event handler failed to call the default event handler function - * when presented with an unknown event. - */ -#define CHIP_ERROR_DEFAULT_EVENT_HANDLER_NOT_CALLED CHIP_CORE_ERROR(0x9e) +// AVAILABLE: 0x9e /** * @def CHIP_ERROR_PERSISTED_STORAGE_FAILED @@ -1886,22 +1370,9 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_IM_FABRIC_DELETED CHIP_CORE_ERROR(0xa1) -/** - * @def CHIP_ERROR_PROFILE_STRING_CONTEXT_NOT_REGISTERED - * - * @brief - * The specified profile string support context is not registered. - * - */ -#define CHIP_ERROR_PROFILE_STRING_CONTEXT_NOT_REGISTERED CHIP_CORE_ERROR(0xa2) - -/** - * @def CHIP_ERROR_INCOMPATIBLE_SCHEMA_VERSION - * - * @brief - * Encountered a mismatch in compatibility w.r.t to IDL schema version - */ -#define CHIP_ERROR_INCOMPATIBLE_SCHEMA_VERSION CHIP_CORE_ERROR(0xa3) +// AVAILABLE: 0xa2 +// AVAILABLE: 0xa3 +// AVAILABLE: 0xa4 /** * @def CHIP_ERROR_ACCESS_DENIED @@ -1930,37 +1401,9 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_VERSION_MISMATCH CHIP_CORE_ERROR(0xa7) -/** - * @def CHIP_ERROR_UNSUPPORTED_THREAD_NETWORK_CREATE - * - * @brief - * Device doesn't support standalone Thread network creation. - * On some legacy devices new Thread network can only be created - * together with CHIP Fabric using CrateFabric() message. - * - */ -#define CHIP_ERROR_UNSUPPORTED_THREAD_NETWORK_CREATE CHIP_CORE_ERROR(0xa8) - -/** - * @def CHIP_ERROR_INCONSISTENT_CONDITIONALITY - * - * @brief - * A TraitPath was declared updated with a conditionality that - * does not match that of other TraitPaths already updated in the - * same Trait Instance. - * - */ -#define CHIP_ERROR_INCONSISTENT_CONDITIONALITY CHIP_CORE_ERROR(0xa9) - -/** - * @def CHIP_ERROR_LOCAL_DATA_INCONSISTENT - * - * @brief - * The local data does not match any known version of the - * Trait Instance and cannot support the operation requested. - * - */ -#define CHIP_ERROR_LOCAL_DATA_INCONSISTENT CHIP_CORE_ERROR(0xaa) +// AVAILABLE: 0xa8 +// AVAILABLE: 0xa9 +// AVAILABLE: 0xaa /** * @def CHIP_EVENT_ID_FOUND @@ -2011,32 +1454,9 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_DECODE_FAILED CHIP_CORE_ERROR(0xb0) -/** - * @def CHIP_ERROR_SESSION_KEY_SUSPENDED - * - * @brief - * Use of the identified session key is suspended. - * - */ -#define CHIP_ERROR_SESSION_KEY_SUSPENDED CHIP_CORE_ERROR(0xb1) - -/** - * @def CHIP_ERROR_UNSUPPORTED_WIRELESS_REGULATORY_DOMAIN - * - * @brief - * The specified wireless regulatory domain is unsupported. - * - */ -#define CHIP_ERROR_UNSUPPORTED_WIRELESS_REGULATORY_DOMAIN CHIP_CORE_ERROR(0xb2) - -/** - * @def CHIP_ERROR_UNSUPPORTED_WIRELESS_OPERATING_LOCATION - * - * @brief - * The specified wireless operating location is unsupported. - * - */ -#define CHIP_ERROR_UNSUPPORTED_WIRELESS_OPERATING_LOCATION CHIP_CORE_ERROR(0xb3) +// AVAILABLE: 0xb1 +// AVAILABLE: 0xb2 +// AVAILABLE: 0xb3 /** * @def CHIP_ERROR_MDNS_COLLISION @@ -2065,23 +1485,8 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB CHIP_CORE_ERROR(0xb6) -/** - * @def CHIP_ERROR_IM_MALFORMED_COMMAND_PATH_IB - * - * @brief - * The Command Path IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_COMMAND_PATH_IB CHIP_CORE_ERROR(0xb7) - -/** - * @def CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_STATUS_IB - * - * @brief - * The Attribute Status IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_STATUS_IB CHIP_CORE_ERROR(0xb8) +// AVAILABLE: 0xb7 +// AVAILABLE: 0xb8 /** * @def CHIP_ERROR_IM_MALFORMED_COMMAND_DATA_IB @@ -2101,14 +1506,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_IM_MALFORMED_EVENT_DATA_IB CHIP_CORE_ERROR(0xba) -/** - * @def CHIP_ERROR_IM_MALFORMED_STATUS_IB - * - * @brief - * The Attribute Data IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_STATUS_IB CHIP_CORE_ERROR(0xbb) +// AVAILABLE: 0xbb /** * @def CHIP_ERROR_PEER_NODE_NOT_FOUND @@ -2126,13 +1524,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_HSM CHIP_CORE_ERROR(0xbd) -/** - * @def CHIP_ERROR_INTERMEDIATE_CA_NOT_REQUIRED - * - * @brief - * The commissioner doesn't require an intermediate CA to sign the operational certificates. - */ -#define CHIP_ERROR_INTERMEDIATE_CA_NOT_REQUIRED CHIP_CORE_ERROR(0xbe) +// AVAILABLE: 0xbe /** * @def CHIP_ERROR_REAL_TIME_NOT_SYNCED @@ -2201,21 +1593,8 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_FABRIC_MISMATCH_ON_ICA CHIP_CORE_ERROR(0xc6) -/** - * @def CHIP_ERROR_MESSAGE_COUNTER_OUT_OF_WINDOW - * - * @brief - * The message counter of the received message is out of receiving window - */ -#define CHIP_ERROR_MESSAGE_COUNTER_OUT_OF_WINDOW CHIP_CORE_ERROR(0xc7) - -/** - * @def CHIP_ERROR_REBOOT_SIGNAL_RECEIVED - * - * @brief - * Termination signal is received - */ -#define CHIP_ERROR_REBOOT_SIGNAL_RECEIVED CHIP_CORE_ERROR(0xc8) +// AVAILABLE: 0xc7 +// AVAILABLE: 0xc8 /** * @def CHIP_ERROR_NO_SHARED_TRUSTED_ROOT @@ -2235,113 +1614,18 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_IM_STATUS_CODE_RECEIVED CHIP_CORE_ERROR(0xca) -/** - * @def CHIP_ERROR_IM_MALFORMED_COMMAND_STATUS_IB - * - * @brief - * The Command Status IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_COMMAND_STATUS_IB CHIP_CORE_ERROR(0xcb) - -/** - * @def CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_IB - * - * @brief - * The Invoke Response IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_IB CHIP_CORE_ERROR(0xcc) - -/** - * @def CHIP_ERROR_IM_MALFORMED_INVOKE_REQUEST_MESSAGE - * - * @brief - * The Invoke Request Message is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_INVOKE_REQUEST_MESSAGE CHIP_CORE_ERROR(0xcd) - -/** - * @def CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_MESSAGE - * - * @brief - * The Invoke Response Message is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_MESSAGE CHIP_CORE_ERROR(0xce) - -/** - * @def CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_MESSAGE - * - * @brief - * The Attribute Response Message is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_MESSAGE CHIP_CORE_ERROR(0xcf) - -/** - * @def CHIP_ERROR_IM_MALFORMED_WRITE_REQUEST_MESSAGE - * - * @brief - * The Write Request Message is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_WRITE_REQUEST_MESSAGE CHIP_CORE_ERROR(0xd0) - -/** - * @def CHIP_ERROR_IM_MALFORMED_EVENT_FILTER_IB - * - * @brief - * The Event Filter IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_EVENT_FILTER_IB CHIP_CORE_ERROR(0xd1) - -/** - * @def CHIP_ERROR_IM_MALFORMED_READ_REQUEST_MESSAGE - * - * @brief - * The Read Request Message is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_READ_REQUEST_MESSAGE CHIP_CORE_ERROR(0xd2) - -/** - * @def CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_REQUEST_MESSAGE - * - * @brief - * The Subscribe Request Message is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_REQUEST_MESSAGE CHIP_CORE_ERROR(0xd3) - -/** - * @def CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_RESPONSE_MESSAGE - * - * @brief - * The Subscribe Response Message is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_RESPONSE_MESSAGE CHIP_CORE_ERROR(0xd4) - -/** - * @def CHIP_ERROR_IM_MALFORMED_EVENT_REPORT_IB - * - * @brief - * The Event Report IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_EVENT_REPORT_IB CHIP_CORE_ERROR(0xd5) - -/** - * @def CHIP_ERROR_IM_MALFORMED_CLUSTER_PATH_IB - * - * @brief - * The Cluster Path IB is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_CLUSTER_PATH_IB CHIP_CORE_ERROR(0xd6) +// AVAILABLEL 0xcb +// AVAILABLEL 0xcc +// AVAILABLEL 0xcd +// AVAILABLEL 0xce +// AVAILABLEL 0xcf +// AVAILABLEL 0xd0 +// AVAILABLEL 0xd1 +// AVAILABLEL 0xd2 +// AVAILABLEL 0xd3 +// AVAILABLEL 0xd4 +// AVAILABLEL 0xd5 +// AVAILABLEL 0xd6 /** * @def CHIP_ERROR_IM_MALFORMED_DATA_VERSION_FILTER_IB @@ -2360,14 +1644,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_NOT_FOUND CHIP_CORE_ERROR(0xd8) -/** - * @def CHIP_ERROR_IM_MALFORMED_TIMED_REQUEST_MESSAGE - * - * @brief - * The Timed Request Message is malformed: it does not contain - * the required elements - */ -#define CHIP_ERROR_IM_MALFORMED_TIMED_REQUEST_MESSAGE CHIP_CORE_ERROR(0xd9) +// AVAILABLE: 0xd9 /** * @def CHIP_ERROR_INVALID_FILE_IDENTIFIER @@ -2402,14 +1679,7 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_PROVIDER_LIST_EXHAUSTED CHIP_CORE_ERROR(0xdd) -/* - * @def CHIP_ERROR_ANOTHER_COMMISSIONING_IN_PROGRESS - * - * @brief - * Indicates that the commissioning window on the device is already open, and another - * commissioning is in progress - */ -#define CHIP_ERROR_ANOTHER_COMMISSIONING_IN_PROGRESS CHIP_CORE_ERROR(0xde) +// AVAILABLE: 0xde /** * @def CHIP_ERROR_INVALID_SCHEME_PREFIX @@ -2435,6 +1705,8 @@ using CHIP_ERROR = ::chip::ChipError; */ #define CHIP_ERROR_HANDLER_NOT_SET CHIP_CORE_ERROR(0xe1) +// WHEN ADDING A NEW ERROR CODE: Look for "AVAILABLE" comments above and fill in gaps. + // clang-format on // !!!!! IMPORTANT !!!!! If you add new CHIP errors, please update the translation diff --git a/src/lib/core/tests/TestCHIPErrorStr.cpp b/src/lib/core/tests/TestCHIPErrorStr.cpp index 901dbf4e404a73..d731a47cdbf193 100644 --- a/src/lib/core/tests/TestCHIPErrorStr.cpp +++ b/src/lib/core/tests/TestCHIPErrorStr.cpp @@ -66,11 +66,8 @@ static const CHIP_ERROR kTestElements[] = CHIP_ERROR_UNKNOWN_KEY_TYPE, CHIP_ERROR_KEY_NOT_FOUND, CHIP_ERROR_WRONG_ENCRYPTION_TYPE, - CHIP_ERROR_TOO_MANY_KEYS, CHIP_ERROR_INTEGRITY_CHECK_FAILED, CHIP_ERROR_INVALID_SIGNATURE, - CHIP_ERROR_UNSUPPORTED_MESSAGE_VERSION, - CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE, CHIP_ERROR_UNSUPPORTED_SIGNATURE_TYPE, CHIP_ERROR_INVALID_MESSAGE_LENGTH, CHIP_ERROR_BUFFER_TOO_SMALL, @@ -80,7 +77,6 @@ static const CHIP_ERROR kTestElements[] = CHIP_ERROR_WELL_EMPTY, CHIP_ERROR_INVALID_STRING_LENGTH, CHIP_ERROR_INVALID_LIST_LENGTH, - CHIP_ERROR_INVALID_INTEGRITY_TYPE, CHIP_END_OF_TLV, CHIP_ERROR_TLV_UNDERRUN, CHIP_ERROR_INVALID_TLV_ELEMENT, @@ -88,11 +84,8 @@ static const CHIP_ERROR kTestElements[] = CHIP_ERROR_UNKNOWN_IMPLICIT_TLV_TAG, CHIP_ERROR_WRONG_TLV_TYPE, CHIP_ERROR_TLV_CONTAINER_OPEN, - CHIP_ERROR_INVALID_TRANSFER_MODE, - CHIP_ERROR_INVALID_PROFILE_ID, CHIP_ERROR_INVALID_MESSAGE_TYPE, CHIP_ERROR_UNEXPECTED_TLV_ELEMENT, - CHIP_ERROR_STATUS_REPORT_RECEIVED, CHIP_ERROR_NOT_IMPLEMENTED, CHIP_ERROR_INVALID_ADDRESS, CHIP_ERROR_INVALID_ARGUMENT, @@ -100,28 +93,17 @@ static const CHIP_ERROR kTestElements[] = CHIP_ERROR_INVALID_DATA_LIST, CHIP_ERROR_TIMEOUT, CHIP_ERROR_INVALID_DEVICE_DESCRIPTOR, - CHIP_ERROR_UNSUPPORTED_DEVICE_DESCRIPTOR_VERSION, CHIP_END_OF_INPUT, - CHIP_ERROR_RATE_LIMIT_EXCEEDED, - CHIP_ERROR_SECURITY_MANAGER_BUSY, CHIP_ERROR_INVALID_PASE_PARAMETER, - CHIP_ERROR_PASE_SUPPORTS_ONLY_CONFIG1, - CHIP_ERROR_KEY_CONFIRMATION_FAILED, CHIP_ERROR_INVALID_USE_OF_SESSION_KEY, CHIP_ERROR_CONNECTION_CLOSED_UNEXPECTEDLY, CHIP_ERROR_MISSING_TLV_ELEMENT, CHIP_ERROR_RANDOM_DATA_UNAVAILABLE, - CHIP_ERROR_UNSUPPORTED_HOST_PORT_ELEMENT, - CHIP_ERROR_INVALID_HOST_SUFFIX_INDEX, CHIP_ERROR_HOST_PORT_LIST_EMPTY, - CHIP_ERROR_UNSUPPORTED_AUTH_MODE, - CHIP_ERROR_INVALID_SERVICE_EP, - CHIP_ERROR_INVALID_DIRECTORY_ENTRY_TYPE, CHIP_ERROR_FORCED_RESET, CHIP_ERROR_NO_ENDPOINT, CHIP_ERROR_INVALID_DESTINATION_NODE_ID, CHIP_ERROR_NOT_CONNECTED, - CHIP_ERROR_NO_SW_UPDATE_AVAILABLE, CHIP_ERROR_CA_CERT_NOT_FOUND, CHIP_ERROR_CERT_PATH_LEN_CONSTRAINT_EXCEEDED, CHIP_ERROR_CERT_PATH_TOO_LONG, @@ -130,142 +112,64 @@ static const CHIP_ERROR kTestElements[] = CHIP_ERROR_CERT_NOT_VALID_YET, CHIP_ERROR_UNSUPPORTED_CERT_FORMAT, CHIP_ERROR_UNSUPPORTED_ELLIPTIC_CURVE, - CHIP_CERT_NOT_USED, CHIP_ERROR_CERT_NOT_FOUND, CHIP_ERROR_INVALID_CASE_PARAMETER, - CHIP_ERROR_UNSUPPORTED_CASE_CONFIGURATION, CHIP_ERROR_CERT_LOAD_FAILED, CHIP_ERROR_CERT_NOT_TRUSTED, - CHIP_ERROR_INVALID_ACCESS_TOKEN, CHIP_ERROR_WRONG_CERT_DN, - CHIP_ERROR_INVALID_PROVISIONING_BUNDLE, - CHIP_ERROR_PROVISIONING_BUNDLE_DECRYPTION_ERROR, CHIP_ERROR_WRONG_NODE_ID, - CHIP_ERROR_CONN_ACCEPTED_ON_WRONG_PORT, - CHIP_ERROR_CALLBACK_REPLACED, - CHIP_ERROR_NO_CASE_AUTH_DELEGATE, - CHIP_ERROR_DEVICE_LOCATE_TIMEOUT, - CHIP_ERROR_DEVICE_CONNECT_TIMEOUT, - CHIP_ERROR_DEVICE_AUTH_TIMEOUT, - CHIP_ERROR_MESSAGE_NOT_ACKNOWLEDGED, CHIP_ERROR_RETRANS_TABLE_FULL, - CHIP_ERROR_INVALID_ACK_MESSAGE_COUNTER, - CHIP_ERROR_SEND_THROTTLED, - CHIP_ERROR_WRONG_MSG_VERSION_FOR_EXCHANGE, CHIP_ERROR_TRANSACTION_CANCELED, - CHIP_ERROR_LISTENER_ALREADY_STARTED, - CHIP_ERROR_LISTENER_ALREADY_STOPPED, CHIP_ERROR_INVALID_SUBSCRIPTION, CHIP_ERROR_UNSUPPORTED_CHIP_FEATURE, - CHIP_ERROR_PASE_RECONFIGURE_REQUIRED, - CHIP_ERROR_INVALID_PASE_CONFIGURATION, - CHIP_ERROR_NO_COMMON_PASE_CONFIGURATIONS, CHIP_ERROR_UNSOLICITED_MSG_NO_ORIGINATOR, CHIP_ERROR_INVALID_FABRIC_INDEX, CHIP_ERROR_TOO_MANY_CONNECTIONS, CHIP_ERROR_SHUT_DOWN, CHIP_ERROR_CANCELLED, - CHIP_ERROR_DRBG_ENTROPY_SOURCE_FAILED, CHIP_ERROR_TLV_TAG_NOT_FOUND, CHIP_ERROR_MISSING_SECURE_SESSION, CHIP_ERROR_INVALID_ADMIN_SUBJECT, CHIP_ERROR_INSUFFICIENT_PRIVILEGE, - CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_IB, - CHIP_ERROR_IM_MALFORMED_EVENT_STATUS_IB, - CHIP_ERROR_IM_MALFORMED_STATUS_RESPONSE_MESSAGE, CHIP_ERROR_MESSAGE_COUNTER_EXHAUSTED, CHIP_ERROR_FABRIC_EXISTS, - CHIP_ERROR_KEY_NOT_FOUND_FROM_PEER, CHIP_ERROR_WRONG_ENCRYPTION_TYPE_FROM_PEER, - CHIP_ERROR_UNKNOWN_KEY_TYPE_FROM_PEER, - CHIP_ERROR_INVALID_USE_OF_SESSION_KEY_FROM_PEER, - CHIP_ERROR_UNSUPPORTED_ENCRYPTION_TYPE_FROM_PEER, - CHIP_ERROR_INTERNAL_KEY_ERROR_FROM_PEER, CHIP_ERROR_INVALID_KEY_ID, CHIP_ERROR_INVALID_TIME, - CHIP_ERROR_LOCKING_FAILURE, - CHIP_ERROR_UNSUPPORTED_PASSCODE_CONFIG, - CHIP_ERROR_PASSCODE_AUTHENTICATION_FAILED, - CHIP_ERROR_PASSCODE_FINGERPRINT_FAILED, - CHIP_ERROR_SERIALIZATION_ELEMENT_NULL, - CHIP_ERROR_WRONG_CERT_SIGNATURE_ALGORITHM, - CHIP_ERROR_WRONG_CHIP_SIGNATURE_ALGORITHM, CHIP_ERROR_SCHEMA_MISMATCH, CHIP_ERROR_INVALID_INTEGER_VALUE, - CHIP_ERROR_CASE_RECONFIG_REQUIRED, - CHIP_ERROR_TOO_MANY_CASE_RECONFIGURATIONS, CHIP_ERROR_BAD_REQUEST, - CHIP_ERROR_INVALID_MESSAGE_FLAG, - CHIP_ERROR_KEY_EXPORT_RECONFIGURE_REQUIRED, - CHIP_ERROR_INVALID_KEY_EXPORT_CONFIGURATION, - CHIP_ERROR_NO_COMMON_KEY_EXPORT_CONFIGURATIONS, - CHIP_ERROR_NO_KEY_EXPORT_DELEGATE, - CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_REQUEST, - CHIP_ERROR_UNAUTHORIZED_KEY_EXPORT_RESPONSE, - CHIP_ERROR_EXPORTED_KEY_AUTHENTICATION_FAILED, - CHIP_ERROR_TOO_MANY_SHARED_SESSION_END_NODES, - CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_DATA_IB, CHIP_ERROR_WRONG_CERT_TYPE, - CHIP_ERROR_DEFAULT_EVENT_HANDLER_NOT_CALLED, CHIP_ERROR_PERSISTED_STORAGE_FAILED, CHIP_ERROR_PERSISTED_STORAGE_VALUE_NOT_FOUND, CHIP_ERROR_IM_FABRIC_DELETED, - CHIP_ERROR_PROFILE_STRING_CONTEXT_NOT_REGISTERED, - CHIP_ERROR_INCOMPATIBLE_SCHEMA_VERSION, CHIP_ERROR_ACCESS_DENIED, CHIP_ERROR_UNKNOWN_RESOURCE_ID, CHIP_ERROR_VERSION_MISMATCH, - CHIP_ERROR_UNSUPPORTED_THREAD_NETWORK_CREATE, - CHIP_ERROR_INCONSISTENT_CONDITIONALITY, - CHIP_ERROR_LOCAL_DATA_INCONSISTENT, CHIP_EVENT_ID_FOUND, CHIP_ERROR_INTERNAL, CHIP_ERROR_OPEN_FAILED, CHIP_ERROR_READ_FAILED, CHIP_ERROR_WRITE_FAILED, CHIP_ERROR_DECODE_FAILED, - CHIP_ERROR_SESSION_KEY_SUSPENDED, - CHIP_ERROR_UNSUPPORTED_WIRELESS_REGULATORY_DOMAIN, - CHIP_ERROR_UNSUPPORTED_WIRELESS_OPERATING_LOCATION, CHIP_ERROR_MDNS_COLLISION, CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_PATH_IB, CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB, - CHIP_ERROR_IM_MALFORMED_COMMAND_PATH_IB, - CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_STATUS_IB, CHIP_ERROR_IM_MALFORMED_COMMAND_DATA_IB, CHIP_ERROR_IM_MALFORMED_EVENT_DATA_IB, - CHIP_ERROR_IM_MALFORMED_STATUS_IB, CHIP_ERROR_PEER_NODE_NOT_FOUND, CHIP_ERROR_HSM, CHIP_ERROR_IM_STATUS_CODE_RECEIVED, - CHIP_ERROR_IM_MALFORMED_COMMAND_STATUS_IB, - CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_IB, - CHIP_ERROR_IM_MALFORMED_INVOKE_REQUEST_MESSAGE, - CHIP_ERROR_IM_MALFORMED_INVOKE_RESPONSE_MESSAGE, - CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_MESSAGE, - CHIP_ERROR_IM_MALFORMED_WRITE_REQUEST_MESSAGE, - CHIP_ERROR_IM_MALFORMED_EVENT_FILTER_IB, - CHIP_ERROR_IM_MALFORMED_READ_REQUEST_MESSAGE, - CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_REQUEST_MESSAGE, - CHIP_ERROR_IM_MALFORMED_SUBSCRIBE_RESPONSE_MESSAGE, - CHIP_ERROR_IM_MALFORMED_EVENT_REPORT_IB, - CHIP_ERROR_IM_MALFORMED_CLUSTER_PATH_IB, CHIP_ERROR_IM_MALFORMED_DATA_VERSION_FILTER_IB, CHIP_ERROR_NOT_FOUND, - CHIP_ERROR_IM_MALFORMED_TIMED_REQUEST_MESSAGE, CHIP_ERROR_INVALID_FILE_IDENTIFIER, CHIP_ERROR_BUSY, CHIP_ERROR_MAX_RETRY_EXCEEDED, CHIP_ERROR_PROVIDER_LIST_EXHAUSTED, - CHIP_ERROR_ANOTHER_COMMISSIONING_IN_PROGRESS, CHIP_ERROR_INVALID_SCHEME_PREFIX, CHIP_ERROR_MISSING_URI_SEPARATOR, - CHIP_ERROR_IM_MALFORMED_STATUS_RESPONSE_MESSAGE, - CHIP_ERROR_IM_MALFORMED_TIMED_REQUEST_MESSAGE, CHIP_ERROR_INVALID_FILE_IDENTIFIER, CHIP_ERROR_BUSY, - CHIP_ERROR_IM_MALFORMED_ATTRIBUTE_REPORT_IB, - CHIP_ERROR_IM_MALFORMED_EVENT_STATUS_IB, CHIP_ERROR_HANDLER_NOT_SET, }; // clang-format on diff --git a/src/messaging/ExchangeContext.h b/src/messaging/ExchangeContext.h index 6d6c9e58acf148..e30cf0593b3ed9 100644 --- a/src/messaging/ExchangeContext.h +++ b/src/messaging/ExchangeContext.h @@ -104,8 +104,6 @@ class DLL_EXPORT ExchangeContext : public ReliableMessageContext, * @param[in] sendFlags Flags set by the application for the CHIP message being sent. * * @retval #CHIP_ERROR_INVALID_ARGUMENT if an invalid argument was passed to this SendMessage API. - * @retval #CHIP_ERROR_WRONG_MSG_VERSION_FOR_EXCHANGE if there is a mismatch in the specific send operation and the - * CHIP message protocol version that is supported. * @retval #CHIP_ERROR_NOT_CONNECTED if the context was associated with a connection that is now * closed. * @retval #CHIP_ERROR_INCORRECT_STATE if the state of the exchange context is incorrect.