mikroSDK Reference Manual
error.h
Go to the documentation of this file.
1
29#ifndef _ERROR_H
30#define _ERROR_H
31
32//C++ guard
33#ifdef __cplusplus
34extern "C" {
35#endif
36
37
42typedef enum
43{
46
49
50 ERROR_BAD_CRC,
51 ERROR_BAD_BLOCK,
60 ERROR_USB_RESET,
61 ERROR_ABORTED,
62
63 ERROR_OUT_OF_MEMORY = 100,
64 ERROR_OUT_OF_RESOURCES,
65 ERROR_INVALID_REQUEST,
66 ERROR_NOT_IMPLEMENTED,
67 ERROR_VERSION_NOT_SUPPORTED,
68 ERROR_INVALID_SYNTAX,
69 ERROR_AUTHENTICATION_FAILED,
70 ERROR_UNEXPECTED_RESPONSE,
71 ERROR_INVALID_RESPONSE,
72 ERROR_UNEXPECTED_VALUE,
73 ERROR_WAIT_CANCELED,
74
75 ERROR_OPEN_FAILED = 200,
76 ERROR_CONNECTION_FAILED,
77 ERROR_CONNECTION_REFUSED,
78 ERROR_CONNECTION_CLOSING,
79 ERROR_CONNECTION_RESET,
80 ERROR_NOT_CONNECTED,
81 ERROR_ALREADY_CLOSED,
82 ERROR_ALREADY_CONNECTED,
83 ERROR_INVALID_SOCKET,
84 ERROR_PROTOCOL_UNREACHABLE,
85 ERROR_PORT_UNREACHABLE,
86 ERROR_INVALID_FRAME,
87 ERROR_INVALID_HEADER,
88 ERROR_WRONG_CHECKSUM,
89 ERROR_WRONG_IDENTIFIER,
90 ERROR_WRONG_CLIENT_ID,
91 ERROR_WRONG_SERVER_ID,
92 ERROR_WRONG_COOKIE,
93 ERROR_NO_RESPONSE,
94 ERROR_RECEIVE_QUEUE_FULL,
95 ERROR_TIMEOUT,
96 ERROR_WOULD_BLOCK,
97 ERROR_INVALID_NAME,
98 ERROR_INVALID_OPTION,
99 ERROR_UNEXPECTED_STATE,
100 ERROR_INVALID_COMMAND,
101 ERROR_INVALID_PROTOCOL,
102 ERROR_INVALID_STATUS,
103 ERROR_INVALID_ADDRESS,
104 ERROR_INVALID_PORT,
105 ERROR_INVALID_MESSAGE,
106 ERROR_INVALID_KEY,
107 ERROR_INVALID_KEY_LENGTH,
108 ERROR_INVALID_EPOCH,
109 ERROR_INVALID_SEQUENCE_NUMBER,
110 ERROR_INVALID_CHARACTER,
111 ERROR_INVALID_LENGTH,
112 ERROR_INVALID_PADDING,
113 ERROR_INVALID_MAC,
114 ERROR_INVALID_TAG,
115 ERROR_INVALID_TYPE,
116 ERROR_INVALID_VALUE,
117 ERROR_INVALID_CLASS,
118 ERROR_INVALID_VERSION,
119 ERROR_INVALID_PIN_CODE,
120 ERROR_WRONG_LENGTH,
121 ERROR_WRONG_TYPE,
122 ERROR_WRONG_ENCODING,
123 ERROR_WRONG_VALUE,
124 ERROR_INCONSISTENT_VALUE,
125 ERROR_UNSUPPORTED_TYPE,
126 ERROR_UNSUPPORTED_ALGO,
127 ERROR_UNSUPPORTED_CIPHER_SUITE,
128 ERROR_UNSUPPORTED_CIPHER_MODE,
129 ERROR_UNSUPPORTED_CIPHER_ALGO,
130 ERROR_UNSUPPORTED_HASH_ALGO,
131 ERROR_UNSUPPORTED_KEY_EXCH_ALGO,
132 ERROR_UNSUPPORTED_SIGNATURE_ALGO,
133 ERROR_UNSUPPORTED_ELLIPTIC_CURVE,
134 ERROR_INVALID_SIGNATURE_ALGO,
135 ERROR_CERTIFICATE_REQUIRED,
136 ERROR_MESSAGE_TOO_LONG,
137 ERROR_OUT_OF_RANGE,
138 ERROR_MESSAGE_DISCARDED,
139
140 ERROR_INVALID_PACKET,
141 ERROR_BUFFER_EMPTY,
142 ERROR_BUFFER_OVERFLOW,
143 ERROR_BUFFER_UNDERFLOW,
144
145 ERROR_INVALID_RESOURCE,
146 ERROR_INVALID_PATH,
147 ERROR_NOT_FOUND,
148 ERROR_ACCESS_DENIED,
149 ERROR_NOT_WRITABLE,
150 ERROR_AUTH_REQUIRED,
151
152 ERROR_TRANSMITTER_BUSY,
153 ERROR_NO_RUNNING,
154
155 ERROR_INVALID_FILE = 300,
156 ERROR_FILE_NOT_FOUND,
157 ERROR_FILE_OPENING_FAILED,
158 ERROR_FILE_READING_FAILED,
159 ERROR_END_OF_FILE,
160 ERROR_UNEXPECTED_END_OF_FILE,
161 ERROR_UNKNOWN_FILE_FORMAT,
162
163 ERROR_INVALID_DIRECTORY,
164 ERROR_DIRECTORY_NOT_FOUND,
165
166 ERROR_FILE_SYSTEM_NOT_SUPPORTED = 400,
167 ERROR_UNKNOWN_FILE_SYSTEM,
168 ERROR_INVALID_FILE_SYSTEM,
169 ERROR_INVALID_BOOT_SECTOR_SIGNATURE,
170 ERROR_INVALID_SECTOR_SIZE,
171 ERROR_INVALID_CLUSTER_SIZE,
172 ERROR_INVALID_FILE_RECORD_SIZE,
173 ERROR_INVALID_INDEX_BUFFER_SIZE,
174 ERROR_INVALID_VOLUME_DESCRIPTOR_SIGNATURE,
175 ERROR_INVALID_VOLUME_DESCRIPTOR,
176 ERROR_INVALID_FILE_RECORD,
177 ERROR_INVALID_INDEX_BUFFER,
178 ERROR_INVALID_DATA_RUNS,
179 ERROR_WRONG_TAG_IDENTIFIER,
180 ERROR_WRONG_TAG_CHECKSUM,
181 ERROR_WRONG_MAGIC_NUMBER,
182 ERROR_WRONG_SEQUENCE_NUMBER,
183 ERROR_DESCRIPTOR_NOT_FOUND,
184 ERROR_ATTRIBUTE_NOT_FOUND,
185 ERROR_RESIDENT_ATTRIBUTE,
186 ERROR_NOT_RESIDENT_ATTRIBUTE,
187 ERROR_INVALID_SUPER_BLOCK,
188 ERROR_INVALID_SUPER_BLOCK_SIGNATURE,
189 ERROR_INVALID_BLOCK_SIZE,
190 ERROR_UNSUPPORTED_REVISION_LEVEL,
191 ERROR_INVALID_INODE_SIZE,
192 ERROR_INODE_NOT_FOUND,
193
194 ERROR_UNEXPECTED_MESSAGE = 500,
195
196 ERROR_URL_TOO_LONG,
197 ERROR_QUERY_STRING_TOO_LONG,
198
199 ERROR_NO_ADDRESS,
200 ERROR_NO_BINDING,
201 ERROR_NOT_ON_LINK,
202 ERROR_USE_MULTICAST,
203 ERROR_NAK_RECEIVED,
204 ERROR_EXCEPTION_RECEIVED,
205
206 ERROR_NO_CARRIER,
207
208 ERROR_INVALID_LEVEL,
209 ERROR_WRONG_STATE,
210 ERROR_END_OF_STREAM,
211 ERROR_LINK_DOWN,
212 ERROR_INVALID_OPTION_LENGTH,
213 ERROR_IN_PROGRESS,
214
215 ERROR_NO_ACK,
216 ERROR_INVALID_METADATA,
217 ERROR_NOT_CONFIGURED,
218 ERROR_NAME_RESOLUTION_FAILED,
219 ERROR_NO_ROUTE,
220
221 ERROR_WRITE_FAILED,
222 ERROR_READ_FAILED,
223 ERROR_UPLOAD_FAILED,
224 ERROR_READ_ONLY_ACCESS,
225
226 ERROR_INVALID_SIGNATURE,
227 ERROR_INVALID_TICKET,
228 ERROR_NO_TICKET,
229
230 ERROR_BAD_RECORD_MAC,
231 ERROR_RECORD_OVERFLOW,
232 ERROR_HANDSHAKE_FAILED,
233 ERROR_NO_CERTIFICATE,
234 ERROR_BAD_CERTIFICATE,
235 ERROR_UNSUPPORTED_CERTIFICATE,
236 ERROR_UNKNOWN_CERTIFICATE,
237 ERROR_CERTIFICATE_EXPIRED,
238 ERROR_CERTIFICATE_REVOKED,
239 ERROR_UNKNOWN_CA,
240 ERROR_DECODING_FAILED,
241 ERROR_DECRYPTION_FAILED,
242 ERROR_ILLEGAL_PARAMETER,
243 ERROR_MISSING_EXTENSION,
244 ERROR_UNSUPPORTED_EXTENSION,
245 ERROR_INAPPROPRIATE_FALLBACK,
246 ERROR_NO_APPLICATION_PROTOCOL,
247
248 ERROR_MORE_DATA_REQUIRED,
249 ERROR_TLS_NOT_SUPPORTED,
250 ERROR_PRNG_NOT_READY,
251 ERROR_SERVICE_CLOSING,
252 ERROR_INVALID_TIMESTAMP,
253 ERROR_NO_DNS_SERVER,
254
255 ERROR_OBJECT_NOT_FOUND,
256 ERROR_INSTANCE_NOT_FOUND,
257 ERROR_ADDRESS_NOT_FOUND,
258
259 ERROR_UNKNOWN_IDENTITY,
260 ERROR_UNKNOWN_ENGINE_ID,
261 ERROR_UNKNOWN_USER_NAME,
262 ERROR_UNKNOWN_CONTEXT,
263 ERROR_UNAVAILABLE_CONTEXT,
264 ERROR_UNSUPPORTED_SECURITY_LEVEL,
265 ERROR_NOT_IN_TIME_WINDOW,
266 ERROR_AUTHORIZATION_FAILED,
267
268 ERROR_INVALID_FUNCTION_CODE,
269 ERROR_DEVICE_BUSY,
270
271 ERROR_REQUEST_REJECTED,
272
273 ERROR_INVALID_CHANNEL,
274 ERROR_INVALID_GROUP,
275 ERROR_UNKNOWN_SERVICE,
276 ERROR_UNKNOWN_REQUEST,
277 ERROR_FLOW_CONTROL,
278
279 ERROR_INVALID_PASSWORD,
280 ERROR_INVALID_HANDLE,
281 ERROR_BAD_NONCE,
282 ERROR_UNEXPECTED_STATUS,
283 ERROR_RESPONSE_TOO_LARGE,
284
285 ERROR_INVALID_SESSION,
286 ERROR_TICKET_EXPIRED,
287
288 ERROR_INVALID_ENTRY,
289 ERROR_TABLE_FULL,
290 ERROR_END_OF_TABLE,
291
292 ERROR_ALREADY_RUNNING,
293 ERROR_UNKOWN_KEY,
294 ERROR_UNKNOWN_TYPE,
295 ERROR_UNSUPPORTED_OPTION,
296 ERROR_INVALID_SPI,
297 ERROR_RETRY,
298 ERROR_POLICY_FAILURE,
299 ERROR_INVALID_PROPOSAL,
300 ERROR_INVALID_SELECTOR,
301
302 ERROR_WRONG_NONCE,
303 ERROR_WRONG_ISSUER,
304 ERROR_RESPONSE_EXPIRED,
305 ERROR_CRL_EXPIRED,
306
307 ERROR_NO_MATCH,
308 ERROR_PARTIAL_MATCH
309} error_t;
310
311//C++ guard
312#ifdef __cplusplus
313}
314#endif
315
316#endif
error_t
Error codes.
Definition error.h:43
@ ERROR_INVALID_INTERFACE
Invalid interface.
Definition error.h:53
@ ERROR_UNSUPPORTED_REQUEST
Unsupported request.
Definition error.h:56
@ ERROR_UNSUPPORTED_CONFIGURATION
Unsupported configuration.
Definition error.h:57
@ ERROR_INVALID_ENDPOINT
Invalid endpoint.
Definition error.h:54
@ ERROR_ENDPOINT_BUSY
Endpoint already in use.
Definition error.h:59
@ ERROR_INVALID_RECIPIENT
Invalid recipient.
Definition error.h:52
@ NO_ERROR
Success.
Definition error.h:44
@ ERROR_UNSUPPORTED_FEATURE
Unsupported feature.
Definition error.h:58
@ 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_ALT_SETTING
Alternate setting does not exist.
Definition error.h:55