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