error.h
Go to the documentation of this file.
1/**
2 * @file error.h
3 * @brief Error codes description
4 *
5 * @section License
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 *
9 * Copyright (C) 2010-2021 Oryx Embedded SARL. All rights reserved.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software Foundation,
23 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 *
25 * @author Oryx Embedded SARL (www.oryx-embedded.com)
26 * @version 2.1.2
27 **/
28
29#ifndef _ERROR_H
30#define _ERROR_H
31
32//C++ guard
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37
38/**
39 * @brief Error codes
40 **/
41
42typedef enum
43{
44 NO_ERROR = 0, ///<Success
45 ERROR_FAILURE = 1, ///<Generic error code
46
47 ERROR_INVALID_PARAMETER, ///<Invalid parameter
48 ERROR_PARAMETER_OUT_OF_RANGE, ///<Specified parameter is out of range
49
52 ERROR_INVALID_RECIPIENT, ///<Invalid recipient
53 ERROR_INVALID_INTERFACE, ///<Invalid interface
54 ERROR_INVALID_ENDPOINT, ///<Invalid endpoint
55 ERROR_INVALID_ALT_SETTING, ///<Alternate setting does not exist
56 ERROR_UNSUPPORTED_REQUEST, ///<Unsupported request
57 ERROR_UNSUPPORTED_CONFIGURATION, ///<Unsupported configuration
58 ERROR_UNSUPPORTED_FEATURE, ///<Unsupported feature
59 ERROR_ENDPOINT_BUSY, ///<Endpoint already in use
62
73
138
143
150
153
161
164
192
194
197
204
206
213
219
224
228
246
253
257
266
269
271
276
282
285
289
292
296
297//C++ guard
298#ifdef __cplusplus
299}
300#endif
301
302#endif
error_t
Error codes.
Definition: error.h:43
@ ERROR_UNSUPPORTED_EXTENSION
Definition: error.h:243
@ ERROR_READ_ONLY_ACCESS
Definition: error.h:223
@ ERROR_ATTRIBUTE_NOT_FOUND
Definition: error.h:183
@ ERROR_UNSUPPORTED_CIPHER_ALGO
Definition: error.h:128
@ ERROR_NO_RESPONSE
Definition: error.h:92
@ ERROR_CONNECTION_FAILED
Definition: error.h:75
@ ERROR_LINK_DOWN
Definition: error.h:210
@ ERROR_INVALID_SEQUENCE_NUMBER
Definition: error.h:108
@ ERROR_INVALID_PASSWORD
Definition: error.h:277
@ ERROR_IN_PROGRESS
Definition: error.h:212
@ ERROR_ILLEGAL_PARAMETER
Definition: error.h:241
@ ERROR_WRONG_CHECKSUM
Definition: error.h:87
@ ERROR_UNEXPECTED_VALUE
Definition: error.h:72
@ ERROR_NAME_RESOLUTION_FAILED
Definition: error.h:217
@ ERROR_WOULD_BLOCK
Definition: error.h:95
@ ERROR_INVALID_INTERFACE
Invalid interface.
Definition: error.h:53
@ ERROR_INVALID_VOLUME_DESCRIPTOR
Definition: error.h:174
@ ERROR_INVALID_FUNCTION_CODE
Definition: error.h:267
@ ERROR_WRONG_SEQUENCE_NUMBER
Definition: error.h:181
@ ERROR_USB_RESET
Definition: error.h:60
@ ERROR_MISSING_EXTENSION
Definition: error.h:242
@ ERROR_VERSION_NOT_SUPPORTED
Definition: error.h:67
@ ERROR_INVALID_ADDRESS
Definition: error.h:102
@ ERROR_UNSUPPORTED_REQUEST
Unsupported request.
Definition: error.h:56
@ ERROR_CONNECTION_CLOSING
Definition: error.h:77
@ ERROR_INVALID_VOLUME_DESCRIPTOR_SIGNATURE
Definition: error.h:173
@ ERROR_FILE_NOT_FOUND
Definition: error.h:155
@ ERROR_WRONG_TYPE
Definition: error.h:120
@ ERROR_INODE_NOT_FOUND
Definition: error.h:191
@ ERROR_PRNG_NOT_READY
Definition: error.h:249
@ ERROR_INVALID_SOCKET
Definition: error.h:82
@ ERROR_INVALID_OPTION
Definition: error.h:97
@ ERROR_INVALID_PORT
Definition: error.h:103
@ ERROR_WRONG_IDENTIFIER
Definition: error.h:88
@ ERROR_UNSUPPORTED_TYPE
Definition: error.h:124
@ ERROR_INVALID_TYPE
Definition: error.h:114
@ ERROR_CONNECTION_REFUSED
Definition: error.h:76
@ ERROR_INVALID_INODE_SIZE
Definition: error.h:190
@ ERROR_UNKNOWN_ENGINE_ID
Definition: error.h:259
@ ERROR_INVALID_KEY
Definition: error.h:105
@ ERROR_INVALID_KEY_LENGTH
Definition: error.h:106
@ ERROR_NO_RUNNING
Definition: error.h:152
@ ERROR_INVALID_FILE_RECORD_SIZE
Definition: error.h:171
@ ERROR_EXCEPTION_RECEIVED
Definition: error.h:203
@ ERROR_DESCRIPTOR_NOT_FOUND
Definition: error.h:182
@ ERROR_UNKNOWN_CA
Definition: error.h:238
@ ERROR_NAK_RECEIVED
Definition: error.h:202
@ ERROR_INVALID_RESOURCE
Definition: error.h:144
@ ERROR_INAPPROPRIATE_FALLBACK
Definition: error.h:244
@ ERROR_DECRYPTION_FAILED
Definition: error.h:240
@ ERROR_INVALID_CLASS
Definition: error.h:116
@ ERROR_INVALID_METADATA
Definition: error.h:215
@ ERROR_ALREADY_RUNNING
Definition: error.h:290
@ ERROR_RESPONSE_TOO_LARGE
Definition: error.h:281
@ ERROR_UNEXPECTED_END_OF_FILE
Definition: error.h:159
@ ERROR_UNAVAILABLE_CONTEXT
Definition: error.h:262
@ ERROR_INVALID_TIMESTAMP
Definition: error.h:251
@ ERROR_UNKNOWN_CONTEXT
Definition: error.h:261
@ ERROR_END_OF_FILE
Definition: error.h:158
@ ERROR_UNSUPPORTED_KEY_EXCH_ALGO
Definition: error.h:130
@ ERROR_FILE_SYSTEM_NOT_SUPPORTED
Definition: error.h:165
@ ERROR_TICKET_EXPIRED
Definition: error.h:284
@ ERROR_UNSUPPORTED_SIGNATURE_ALGO
Definition: error.h:131
@ ERROR_NO_ROUTE
Definition: error.h:218
@ ERROR_NOT_FOUND
Definition: error.h:146
@ ERROR_TIMEOUT
Definition: error.h:94
@ ERROR_WRONG_CLIENT_ID
Definition: error.h:89
@ ERROR_UNSUPPORTED_REVISION_LEVEL
Definition: error.h:189
@ ERROR_BAD_CRC
Definition: error.h:50
@ ERROR_INVALID_SESSION
Definition: error.h:283
@ ERROR_WRONG_ENCODING
Definition: error.h:121
@ ERROR_WRONG_LENGTH
Definition: error.h:119
@ ERROR_NO_MATCH
Definition: error.h:293
@ ERROR_OUT_OF_RESOURCES
Definition: error.h:64
@ ERROR_UNSUPPORTED_CONFIGURATION
Unsupported configuration.
Definition: error.h:57
@ ERROR_INVALID_ENDPOINT
Invalid endpoint.
Definition: error.h:54
@ ERROR_CERTIFICATE_REVOKED
Definition: error.h:237
@ ERROR_INVALID_REQUEST
Definition: error.h:65
@ ERROR_NO_DNS_SERVER
Definition: error.h:252
@ ERROR_INVALID_PROTOCOL
Definition: error.h:100
@ ERROR_NOT_IN_TIME_WINDOW
Definition: error.h:264
@ ERROR_FILE_READING_FAILED
Definition: error.h:157
@ ERROR_PORT_UNREACHABLE
Definition: error.h:84
@ ERROR_MESSAGE_DISCARDED
Definition: error.h:137
@ ERROR_BAD_RECORD_MAC
Definition: error.h:229
@ ERROR_QUERY_STRING_TOO_LONG
Definition: error.h:196
@ ERROR_UNSUPPORTED_CERTIFICATE
Definition: error.h:234
@ ERROR_NO_BINDING
Definition: error.h:199
@ ERROR_INVALID_PATH
Definition: error.h:145
@ ERROR_INVALID_TICKET
Definition: error.h:226
@ ERROR_INVALID_MAC
Definition: error.h:112
@ ERROR_WRONG_TAG_IDENTIFIER
Definition: error.h:178
@ ERROR_URL_TOO_LONG
Definition: error.h:195
@ ERROR_MESSAGE_TOO_LONG
Definition: error.h:135
@ ERROR_INVALID_CLUSTER_SIZE
Definition: error.h:170
@ ERROR_UNSUPPORTED_HASH_ALGO
Definition: error.h:129
@ ERROR_INVALID_MESSAGE
Definition: error.h:104
@ ERROR_INVALID_HANDLE
Definition: error.h:278
@ ERROR_UNSUPPORTED_SECURITY_LEVEL
Definition: error.h:263
@ ERROR_WRONG_SERVER_ID
Definition: error.h:90
@ ERROR_INVALID_SIGNATURE
Definition: error.h:225
@ ERROR_HANDSHAKE_FAILED
Definition: error.h:231
@ ERROR_INVALID_SUPER_BLOCK
Definition: error.h:186
@ ERROR_END_OF_TABLE
Definition: error.h:288
@ ERROR_INVALID_CHARACTER
Definition: error.h:109
@ ERROR_WRITE_FAILED
Definition: error.h:220
@ ERROR_INVALID_SIGNATURE_ALGO
Definition: error.h:133
@ ERROR_INVALID_FILE_RECORD
Definition: error.h:175
@ ERROR_OUT_OF_RANGE
Definition: error.h:136
@ ERROR_INVALID_FILE_SYSTEM
Definition: error.h:167
@ ERROR_INVALID_EPOCH
Definition: error.h:107
@ ERROR_OBJECT_NOT_FOUND
Definition: error.h:254
@ ERROR_SERVICE_CLOSING
Definition: error.h:250
@ ERROR_INSTANCE_NOT_FOUND
Definition: error.h:255
@ ERROR_INVALID_ENTRY
Definition: error.h:286
@ ERROR_NOT_ON_LINK
Definition: error.h:200
@ ERROR_NO_ACK
Definition: error.h:214
@ ERROR_BUFFER_EMPTY
Definition: error.h:140
@ ERROR_INVALID_BOOT_SECTOR_SIGNATURE
Definition: error.h:168
@ ERROR_INVALID_INDEX_BUFFER
Definition: error.h:176
@ ERROR_NOT_CONFIGURED
Definition: error.h:216
@ ERROR_PARTIAL_MATCH
Definition: error.h:294
@ ERROR_AUTHENTICATION_FAILED
Definition: error.h:69
@ ERROR_UNSUPPORTED_CIPHER_SUITE
Definition: error.h:126
@ ERROR_WRONG_COOKIE
Definition: error.h:91
@ ERROR_END_OF_STREAM
Definition: error.h:209
@ ERROR_ABORTED
Definition: error.h:61
@ ERROR_NOT_CONNECTED
Definition: error.h:79
@ ERROR_UPLOAD_FAILED
Definition: error.h:222
@ ERROR_UNSUPPORTED_ALGO
Definition: error.h:125
@ ERROR_INVALID_SYNTAX
Definition: error.h:68
@ ERROR_RECEIVE_QUEUE_FULL
Definition: error.h:93
@ ERROR_DECODING_FAILED
Definition: error.h:239
@ ERROR_TLS_NOT_SUPPORTED
Definition: error.h:248
@ ERROR_UNKNOWN_CERTIFICATE
Definition: error.h:235
@ ERROR_INVALID_VALUE
Definition: error.h:115
@ ERROR_UNKOWN_KEY
Definition: error.h:291
@ ERROR_INVALID_HEADER
Definition: error.h:86
@ ERROR_UNKNOWN_SERVICE
Definition: error.h:273
@ ERROR_FLOW_CONTROL
Definition: error.h:275
@ ERROR_UNKNOWN_FILE_SYSTEM
Definition: error.h:166
@ ERROR_INVALID_FRAME
Definition: error.h:85
@ ERROR_CERTIFICATE_EXPIRED
Definition: error.h:236
@ ERROR_TRANSMITTER_BUSY
Definition: error.h:151
@ ERROR_NOT_WRITABLE
Definition: error.h:148
@ ERROR_INVALID_BLOCK_SIZE
Definition: error.h:188
@ ERROR_UNEXPECTED_RESPONSE
Definition: error.h:70
@ ERROR_WRONG_VALUE
Definition: error.h:122
@ ERROR_UNEXPECTED_STATUS
Definition: error.h:280
@ ERROR_USE_MULTICAST
Definition: error.h:201
@ ERROR_AUTHORIZATION_FAILED
Definition: error.h:265
@ ERROR_UNSUPPORTED_ELLIPTIC_CURVE
Definition: error.h:132
@ ERROR_ENDPOINT_BUSY
Endpoint already in use.
Definition: error.h:59
@ ERROR_INVALID_DATA_RUNS
Definition: error.h:177
@ ERROR_ACCESS_DENIED
Definition: error.h:147
@ ERROR_NO_ADDRESS
Definition: error.h:198
@ ERROR_NO_CERTIFICATE
Definition: error.h:232
@ ERROR_INVALID_COMMAND
Definition: error.h:99
@ ERROR_NOT_IMPLEMENTED
Definition: error.h:66
@ ERROR_OPEN_FAILED
Definition: error.h:74
@ ERROR_INVALID_OPTION_LENGTH
Definition: error.h:211
@ ERROR_INVALID_SUPER_BLOCK_SIGNATURE
Definition: error.h:187
@ ERROR_INVALID_RECIPIENT
Invalid recipient.
Definition: error.h:52
@ ERROR_INVALID_LEVEL
Definition: error.h:207
@ ERROR_TABLE_FULL
Definition: error.h:287
@ ERROR_NO_APPLICATION_PROTOCOL
Definition: error.h:245
@ ERROR_UNKNOWN_REQUEST
Definition: error.h:274
@ NO_ERROR
Success.
Definition: error.h:44
@ ERROR_BUFFER_OVERFLOW
Definition: error.h:141
@ ERROR_OUT_OF_MEMORY
Definition: error.h:63
@ ERROR_UNEXPECTED_STATE
Definition: error.h:98
@ ERROR_BAD_CERTIFICATE
Definition: error.h:233
@ ERROR_BAD_NONCE
Definition: error.h:279
@ ERROR_REQUEST_REJECTED
Definition: error.h:270
@ ERROR_WRONG_STATE
Definition: error.h:208
@ ERROR_WRONG_MAGIC_NUMBER
Definition: error.h:180
@ ERROR_CERTIFICATE_REQUIRED
Definition: error.h:134
@ ERROR_ADDRESS_NOT_FOUND
Definition: error.h:256
@ ERROR_INVALID_PADDING
Definition: error.h:111
@ ERROR_RECORD_OVERFLOW
Definition: error.h:230
@ ERROR_INVALID_PACKET
Definition: error.h:139
@ ERROR_READ_FAILED
Definition: error.h:221
@ ERROR_INVALID_STATUS
Definition: error.h:101
@ ERROR_INVALID_PIN_CODE
Definition: error.h:118
@ ERROR_DEVICE_BUSY
Definition: error.h:268
@ ERROR_NO_TICKET
Definition: error.h:227
@ ERROR_UNSUPPORTED_FEATURE
Unsupported feature.
Definition: error.h:58
@ ERROR_PROTOCOL_UNREACHABLE
Definition: error.h:83
@ ERROR_RESIDENT_ATTRIBUTE
Definition: error.h:184
@ ERROR_INVALID_CHANNEL
Definition: error.h:272
@ ERROR_INVALID_INDEX_BUFFER_SIZE
Definition: error.h:172
@ ERROR_UNKNOWN_FILE_FORMAT
Definition: error.h:160
@ ERROR_UNKNOWN_USER_NAME
Definition: error.h:260
@ ERROR_UNKNOWN_IDENTITY
Definition: error.h:258
@ ERROR_NOT_RESIDENT_ATTRIBUTE
Definition: error.h:185
@ ERROR_INVALID_FILE
Definition: error.h:154
@ ERROR_INVALID_LENGTH
Definition: error.h:110
@ ERROR_CONNECTION_RESET
Definition: error.h:78
@ ERROR_INVALID_NAME
Definition: error.h:96
@ ERROR_FAILURE
Generic error code.
Definition: error.h:45
@ ERROR_PARAMETER_OUT_OF_RANGE
Specified parameter is out of range.
Definition: error.h:48
@ ERROR_INVALID_PARAMETER
Invalid parameter.
Definition: error.h:47
@ ERROR_INVALID_SECTOR_SIZE
Definition: error.h:169
@ ERROR_BAD_BLOCK
Definition: error.h:51
@ ERROR_ALREADY_CLOSED
Definition: error.h:80
@ ERROR_ALREADY_CONNECTED
Definition: error.h:81
@ ERROR_INVALID_TAG
Definition: error.h:113
@ ERROR_AUTH_REQUIRED
Definition: error.h:149
@ ERROR_MORE_DATA_REQUIRED
Definition: error.h:247
@ ERROR_DIRECTORY_NOT_FOUND
Definition: error.h:163
@ ERROR_WRONG_TAG_CHECKSUM
Definition: error.h:179
@ ERROR_INVALID_DIRECTORY
Definition: error.h:162
@ ERROR_INCONSISTENT_VALUE
Definition: error.h:123
@ ERROR_UNEXPECTED_MESSAGE
Definition: error.h:193
@ ERROR_UNSUPPORTED_CIPHER_MODE
Definition: error.h:127
@ ERROR_FILE_OPENING_FAILED
Definition: error.h:156
@ ERROR_INVALID_VERSION
Definition: error.h:117
@ ERROR_NO_CARRIER
Definition: error.h:205
@ ERROR_INVALID_RESPONSE
Definition: error.h:71
@ ERROR_INVALID_ALT_SETTING
Alternate setting does not exist.
Definition: error.h:55
@ ERROR_BUFFER_UNDERFLOW
Definition: error.h:142