Review Tizen API cs files
[platform/core/csapi/tizenfx.git] / src / Tizen / Tizen.Internals.Errors / ErrorCode.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 namespace Tizen.Internals.Errors
18 {
19     /// <summary>
20     /// Error codes used inside Tizen .NET API implementation.
21     /// </summary>
22     /// <since_tizen> 3 </since_tizen>
23     public enum ErrorCode : int
24     {
25         /// <summary>
26         /// Successful.
27         /// </summary>
28         None = 0, //  0
29
30         /// <summary>
31         /// Operation not permitted.
32         /// </summary>
33         NotPermitted = -1, //  -EPERM
34
35         /// <summary>
36         /// No such file or directory.
37         /// </summary>
38         NoSuchFile = -2, //  -ENOENT
39
40         /// <summary>
41         /// No such process.
42         /// </summary>
43         NoSuchProcess = -3, //  -ESRCH
44
45         /// <summary>
46         /// Interrupted system call.
47         /// </summary>
48         InterruptedSysCall = -4, //  -EINTR
49
50         /// <summary>
51         /// I/O error.
52         /// </summary>
53         IoError = -5, //  -EIO
54
55         /// <summary>
56         /// No such device or address.
57         /// </summary>
58         NoSuchDevice = -6, //  -ENXIO
59
60         /// <summary>
61         /// Argument list too long.
62         /// </summary>
63         ArgumentListTooLong = -7, //  -E2BIG
64
65         /// <summary>
66         /// Executable format error.
67         /// </summary>
68         ExecFormatError = -8, //  -ENOEXEC
69
70         /// <summary>
71         /// Bad file number.
72         /// </summary>
73         BadFileNumber = -9, //  -EBADF
74
75         /// <summary>
76         /// Try again.
77         /// </summary>
78         TryAgain = -11, //  -EAGAIN
79
80         /// <summary>
81         /// Out of memory.
82         /// </summary>
83         OutOfMemory = -12, //  -ENOMEM
84
85         /// <summary>
86         /// Permission denied.
87         /// </summary>
88         PermissionDenied = -13, //  -EACCES
89
90         /// <summary>
91         /// Bad address.
92         /// </summary>
93         BadAddress = -14, //  -EFAULT
94
95         /// <summary>
96         /// Block device required.
97         /// </summary>
98         BlockDeviceRequired = -15, //  -ENOTBLK
99
100         /// <summary>
101         /// Device or resource busy.
102         /// </summary>
103         ResourceBusy = -16, //  -EBUSY
104
105         /// <summary>
106         /// File exists.
107         /// </summary>
108         FileExists = -17, //  -EEXIST
109
110         /// <summary>
111         /// Cross-device link.
112         /// </summary>
113         CrossDeviceLink = -18, //  -EXDEV
114
115         /// <summary>
116         /// Not a directory.
117         /// </summary>
118         NotaDirectory = -20, //  -ENOTDIR
119
120         /// <summary>
121         /// Is a directory.
122         /// </summary>
123         IsADirectory = -21, //  -EISDIR
124
125         /// <summary>
126         /// Invalid function parameter.
127         /// </summary>
128         InvalidParameter = -22, //  -EINVAL
129
130         /// <summary>
131         /// File table overflow.
132         /// </summary>
133         FileTableOverflow = -23, //  -ENFILE
134
135         /// <summary>
136         /// Too many open files.
137         /// </summary>
138         TooManyOpenFiles = -24, //  -EMFILE
139
140         /// <summary>
141         /// Not a terminal.
142         /// </summary>
143         TooNotaTerminal = -25, //  -ENOTTY
144
145         /// <summary>
146         /// Too text file busy.
147         /// </summary>
148         TooTextFileBusy = -26, //  -ETXTBSY
149
150         /// <summary>
151         /// File too large.
152         /// </summary>
153         FileTooLarge = -27, //  -EFBIG
154
155         /// <summary>
156         /// No space left on device.
157         /// </summary>
158         FileNoSpaceOnDevice = -28, //  -ENOSPC
159
160         /// <summary>
161         /// Illegal seek.
162         /// </summary>
163         IllegalSeek = -29, //  -ESPIPE
164
165         /// <summary>
166         /// Read-only file system.
167         /// </summary>
168         ReadOnlyFilesystem = -30, //  -EROFS
169
170         /// <summary>
171         /// No data available.
172         /// </summary>
173         NoData = -61, //  -ENODATA
174
175         /// <summary>
176         /// Too many links.
177         /// </summary>
178         TooManyLinks = -31, //  -EMLINK
179
180         /// <summary>
181         /// Broken pipe.
182         /// </summary>
183         BrokenPipe = -32, //  -EPIPE
184
185         /// <summary>
186         /// Math argument out of domain of the function.
187         /// </summary>
188         ArgumentOutOfDomain = -33, //  -EDOM
189
190         /// <summary>
191         /// Math result not representable.
192         /// </summary>
193         ResultOutOfRange = -34, //  -ERANGE
194
195         /// <summary>
196         /// Resource deadlock would occur.
197         /// </summary>
198         WouldCauseDeadlock = -35, //  -EDEADLK
199
200         /// <summary>
201         /// File name too long.
202         /// </summary>
203         FileNameTooLong = -36, //  -ENAMETOOLONG
204
205         /// <summary>
206         /// No record locks available.
207         /// </summary>
208         FileNoLocksAvailable = -37, //  -ENOLCK
209
210         /// <summary>
211         /// Function not implemented.
212         /// </summary>
213         InvalidOperation = -38, //  -ENOSYS
214
215         /// <summary>
216         /// Directory not empty.
217         /// </summary>
218         DirNotEmpty = -39, //  -ENOTEMPTY
219
220         /// <summary>
221         /// Too many symbolic links encountered.
222         /// </summary>
223         TooManySymbolicLinks = -40, //  -ELOOP
224
225         /// <summary>
226         /// Operation would block.
227         /// </summary>
228         WouldBlock = -11, //  TryAgain (-EAGAIN)
229
230         /// <summary>
231         /// Accessing a corrupted shared library.
232         /// </summary>
233         CorruptedSharedLib = -80, //  -ELIBBAD
234
235         /// <summary>
236         /// .lib section in a.out corrupted.
237         /// </summary>
238         LibSectionCorrupted = -81, //  -ELIBSCN
239
240         /// <summary>
241         /// Attempting to link in too many shared libraries.
242         /// </summary>
243         LinkTooManySharedLib = -82, //  -ELIBMAX
244
245         /// <summary>
246         /// Cannot execute a shared library directly.
247         /// </summary>
248         SharedLibExec = -83, //  -ELIBEXEC
249
250         /// <summary>
251         /// Illegal byte sequence.
252         /// </summary>
253         IllegalByteSeq = -84, //  -EILSEQ
254
255         /// <summary>
256         /// Interrupted system call should be restarted.
257         /// </summary>
258         SystemCallRestart = -85, //  -ERESTART
259
260         /// <summary>
261         /// Streams pipe error.
262         /// </summary>
263         StreamsPipe = -86, //  -ESTRPIPE
264
265         /// <summary>
266         /// Too many users.
267         /// </summary>
268         TooManyUsers = -87, //  -EUSERS
269
270         /// <summary>
271         /// Socket operation on non-socket.
272         /// </summary>
273         NonSocket = -88, //  -ENOTSOCK
274
275         /// <summary>
276         /// Destination address required.
277         /// </summary>
278         NoDestAddress = -89, //  -EDESTADDRREQ
279
280         /// <summary>
281         /// Message too long.
282         /// </summary>
283         MsgTooLong = -90, //  -EMSGSIZE
284
285         /// <summary>
286         /// Protocol wrong type for socket.
287         /// </summary>
288         ProtocolWrongType = -91, //  -EPROTOTYPE
289
290         /// <summary>
291         /// Protocol not available.
292         /// </summary>
293         ProtocolNotAvaliable = -92, //  -ENOPROTOOPT
294
295         /// <summary>
296         /// Protocol not supported.
297         /// </summary>
298         ProtocolNotSupported = -93, //  -EPROTONOSUPPORT
299
300         /// <summary>
301         /// Socket type not supported.
302         /// </summary>
303         SocketTypeNotSupported = -94, //  -ESOCKTNOSUPPORT
304
305         /// <summary>
306         /// Operation not supported on the transport endpoint.
307         /// </summary>
308         EndpointOperatinNotSupported = -95, //  -EOPNOTSUPP
309
310         /// <summary>
311         /// Protocol family not supported.
312         /// </summary>
313         ProtocolFamilyNotSupported = -96, //  -EPFNOSUPPORT
314
315         /// <summary>
316         /// Address family not supported by protocol.
317         /// </summary>
318         AddressFamilyNotSupported = -97, //  -EAFNOSUPPORT
319
320         /// <summary>
321         /// Address already in use.
322         /// </summary>
323         AddresInUse = -98, //  -EADDRINUSE
324
325         /// <summary>
326         /// Cannot assign requested address.
327         /// </summary>
328         CannotAssignAddress = -99, //  -EADDRNOTAVAIL
329
330         /// <summary>
331         /// Network down.
332         /// </summary>
333         Networkdown = -100, //  -ENETDOWN
334
335         /// <summary>
336         /// Network unreachable.
337         /// </summary>
338         NetworkUnreachable = -101, //  -ENETUNREACH
339
340         /// <summary>
341         /// Network dropped the connection because of the reset.
342         /// </summary>
343         NetworkReset = -102, //  -ENETRESET
344
345         /// <summary>
346         /// Software caused the connection to abort.
347         /// </summary>
348         ConnectionAborted = -103, //  -ECONNABORTED
349
350         /// <summary>
351         /// Connection reset by the peer.
352         /// </summary>
353         ConnectionResetByPeer = -104, //  -ECONNRESET
354
355         /// <summary>
356         /// No buffer space available.
357         /// </summary>
358         BufferSpace = -105, //  -ENOBUFS
359
360         /// <summary>
361         /// Transport endpoint already connected.
362         /// </summary>
363         EndpointConnected = -106, //  -EISCONN
364
365         /// <summary>
366         /// Transport endpoint not connected.
367         /// </summary>
368         EndpointNotConnected = -107, //  -ENOTCONN
369
370         /// <summary>
371         /// Cannot send after the transport endpoint shutdown.
372         /// </summary>
373         EndpointShutdown = -108, //  -ESHUTDOWN
374
375         /// <summary>
376         /// Too many references: cannot splice.
377         /// </summary>
378         TooManyReferences = -109, //  -ETOOMANYREFS
379
380         /// <summary>
381         /// Connection timed out.
382         /// </summary>
383         ConnectionTimeout = -110, //  -ETIMEDOUT
384
385         /// <summary>
386         /// Connection refused.
387         /// </summary>
388         ConnectionRefused = -111, //  -ECONNREFUSED
389
390         /// <summary>
391         /// Host down.
392         /// </summary>
393         Hostdown = -112, //  -EHOSTDOWN
394
395         /// <summary>
396         /// No route to host.
397         /// </summary>
398         NoRouteToHost = -113, //  -EHOSTUNREACH
399
400         /// <summary>
401         /// Operation already in progress.
402         /// </summary>
403         AlreadyInProgress = -114, //  -EALREADY
404
405         /// <summary>
406         /// Operation now in progress.
407         /// </summary>
408         NowInProgress = -115, //  -EINPROGRESS
409
410         /// <summary>
411         /// Stale NFS file handle.
412         /// </summary>
413         StaleNfsFileHandle = -116, //  -ESTALE
414
415         /// <summary>
416         /// Structure needs cleaning.
417         /// </summary>
418         StructureUnclean = -117, //  -EUCLEAN
419
420         /// <summary>
421         /// Not a XENIX named type file.
422         /// </summary>
423         NotXenixNamedTypeFile = -118, //  -ENOTNAM
424
425         /// <summary>
426         /// No XENIX semaphores available.
427         /// </summary>
428         NoXenixSemaphoresAvailable = -119, //  -ENAVAIL
429
430         /// <summary>
431         /// Is a named type file.
432         /// </summary>
433         IsNamedTypeFile = -120, //  -EISNAM
434
435         /// <summary>
436         /// Remote I/O error.
437         /// </summary>
438         RemoteIo = -121, //  -EREMOTEIO
439
440         /// <summary>
441         /// Quota exceeded.
442         /// </summary>
443         QuotaExceeded = -122, //  -EDQUOT
444
445         /// <summary>
446         /// No medium found.
447         /// </summary>
448         NoMedium = -123, //  -ENOMEDIUM
449
450         /// <summary>
451         /// Wrong medium type.
452         /// </summary>
453         WrongMediumType = -124, //  -EMEDIUMTYPE
454
455         /// <summary>
456         /// Operation Canceled.
457         /// </summary>
458         Canceled = -125, //  -ECANCELED
459
460         /// <summary>
461         /// Required key not available.
462         /// </summary>
463         KeyNotAvailable = -126, //  -ENOKEY
464
465         /// <summary>
466         /// Key has expired.
467         /// </summary>
468         KeyExpired = -127, //  -EKEYEXPIRED
469
470         /// <summary>
471         /// Key has been revoked.
472         /// </summary>
473         KeyRevoked = -128, //  -EKEYREVOKED
474
475         /// <summary>
476         /// Key was rejected by the service.
477         /// </summary>
478         KeyRejected = -129, //  -EKEYREJECTED
479
480
481         /// <summary>
482         /// Owner died (for robust mutexes).
483         /// </summary>
484         OwnerDead = -130, //  -EOWNERDEAD
485
486         /// <summary>
487         /// Unknown error.
488         /// </summary>
489         Unknown = -1073741824, //  TIZEN_ERROR_MIN_PLATFORM_ERROR
490
491         /// <summary>
492         /// Timed out.
493         /// </summary>
494         TimedOut,
495
496         /// <summary>
497         /// Not supported.
498         /// </summary>
499         NotSupported,
500
501         /// <summary>
502         /// Not consented.
503         /// </summary>
504         UserNotConsented,
505
506         /// <summary>
507         /// The end of collection.
508         /// </summary>
509         EndofCollection
510     }
511 }