Release 4.0.0-preview1-00051
[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     public enum ErrorCode : int
20     {
21         None = 0, //  0, /**< Successful */
22         NotPermitted = -1, //  -EPERM, /**< Operation not permitted */
23         NoSuchFile = -2, //  -ENOENT, /**< No such file or directory */
24         NoSuchProcess = -3, //  -ESRCH, /**< No such process */
25         InterruptedSysCall = -4, //  -EINTR, /**< Interrupted system call */
26         IoError = -5, //  -EIO, /**< I/O error */
27         NoSuchDevice = -6, //  -ENXIO, /**< No such device or address */
28         ArgumentListTooLong = -7, //  -E2BIG, /**< Argument list too long */
29         ExecFormatError = -8, //  -ENOEXEC, /**< Exec format error */
30         BadFileNumber = -9, //  -EBADF, /**< Bad file number */
31         TryAgain = -11, //  -EAGAIN, /**< Try again */
32         OutOfMemory = -12, //  -ENOMEM, /**< Out of memory */
33         PermissionDenied = -13, //  -EACCES, /**< Permission denied */
34         BadAddress = -14, //  -EFAULT, /**< Bad address */
35         BlockDeviceRequired = -15, //  -ENOTBLK, /**< Block device required */
36         ResourceBusy = -16, //  -EBUSY, /**< Device or resource busy */
37         FileExists = -17, //  -EEXIST, /**< File exists */
38         CrossDeviceLink = -18, //  -EXDEV, /**< Cross-device link */
39         NotaDirectory = -20, //  -ENOTDIR, /**< Not a directory */
40         IsADirectory = -21, //  -EISDIR, /**< Is a directory */
41         InvalidParameter = -22, //  -EINVAL, /**< Invalid function parameter */
42         FileTableOverflow = -23, //  -ENFILE, /**< File table overflow */
43         TooManyOpenFiles = -24, //  -EMFILE, /**< Too many open files */
44         TooNotaTerminal = -25, //  -ENOTTY, /**< Not a terminal */
45         TooTextFileBusy = -26, //  -ETXTBSY, /**< Not a terminal */
46         FileTooLarge = -27, //  -EFBIG, /**< File too large */
47         FileNoSpaceOnDevice = -28, //  -ENOSPC, /**< No space left on device */
48         IllegalSeek = -29, //  -ESPIPE, /**< Illegal seek */
49         ReadOnlyFilesystem = -30, //  -EROFS, /**< Read-only file system */
50         NoData = -61, //  -ENODATA, /**< No data available */
51         TooManyLinks = -31, //  -EMLINK, /**< Too many links */
52         BrokenPipe = -32, //  -EPIPE, /**< Broken pipe */
53         ArgumentOutOfDomain = -33, //  -EDOM, /**< Math argument out of domain of func */
54         ResultOutOfRange = -34, //  -ERANGE, /**< Math result not representable */
55         WouldCauseDeadlock = -35, //  -EDEADLK, /**< Resource deadlock would occur */
56         FileNameTooLong = -36, //  -ENAMETOOLONG,/**< File name too long */
57         FileNoLocksAvailable = -37, //  -ENOLCK, /**< No record locks available */
58         InvalidOperation = -38, //  -ENOSYS, /**< Function not implemented */
59         DirNotEmpty = -39, //  -ENOTEMPTY, /**< Directory not empty */
60         TooManySymbolicLinks = -40, //  -ELOOP, /**< Too many symbolic links encountered */
61         WouldBlock = -11, //  TryAgain (-EAGAIN), /**< Operation would block */
62         CorruptedSharedLib = -80, //  -ELIBBAD, /**< Accessing a corrupted shared library */
63         LibSectionCorrupted = -81, //  -ELIBSCN, /**< .lib section in a.out corrupted */
64         LinkTooManySharedLib = -82, //  -ELIBMAX, /**< Attempting to link in too many shared libraries */
65         SharedLibExec = -83, //  -ELIBEXEC, /**< Cannot exec a shared library directly */
66         IllegalByteSeq = -84, //  -EILSEQ, /**< Illegal byte sequence */
67         SystemCallRestart = -85, //  -ERESTART, /**< Interrupted system call should be restarted */
68         StreamsPipe = -86, //  -ESTRPIPE, /**< Streams pipe error */
69         TooManyUsers = -87, //  -EUSERS, /**< Too many users */
70         NonSocket = -88, //  -ENOTSOCK, /**< Socket operation on non-socket */
71         NoDestAddress = -89, //  -EDESTADDRREQ, /**< Destination address required */
72         MsgTooLong = -90, //  -EMSGSIZE, /**< Message too long */
73         ProtocolWrongType = -91, //  -EPROTOTYPE, /**< Protocol wrong type for socket */
74         ProtocolNotAvaliable = -92, //  -ENOPROTOOPT, /**< Protocol not available */
75         ProtocolNotSupported = -93, //  -EPROTONOSUPPORT, /**< Protocol not supported */
76         SocketTypeNotSupported = -94, //  -ESOCKTNOSUPPORT, /**< Socket type not supported */
77         EndpointOperatinNotSupported = -95, //  -EOPNOTSUPP, /**< Operation not supported on transport endpoint */
78         ProtocolFamilyNotSupported = -96, //  -EPFNOSUPPORT, /**< Protocol family not supported */
79         AddressFamilyNotSupported = -97, //  -EAFNOSUPPORT, /**< Address family not supported by protocol */
80         AddresInUse = -98, //  -EADDRINUSE, /**< Address already in use */
81         CannotAssignAddress = -99, //  -EADDRNOTAVAIL, /**< Cannot assign requested address */
82         Networkdown = -100, //  -ENETDOWN, /**< Network is down */
83         NetworkUnreachable = -101, //  -ENETUNREACH, /**< Network is unreachable */
84         NetworkReset = -102, //  -ENETRESET, /**< Network dropped connection because of reset */
85         ConnectionAborted = -103, //  -ECONNABORTED, /**< Software caused connection abort */
86         ConnectionResetByPeer = -104, //  -ECONNRESET, /**< Connection reset by peer */
87         BufferSpace = -105, //  -ENOBUFS, /**< No buffer space available */
88         EndpointConnected = -106, //  -EISCONN, /**< Transport endpoint is already connected */
89         EndpointNotConnected = -107, //  -ENOTCONN, /**< Transport endpoint is not connected */
90         EndpointShutdown = -108, //  -ESHUTDOWN, /**< Cannot send after transport endpoint shutdown */
91         TooManyReferences = -109, //  -ETOOMANYREFS, /**< Too many references: cannot splice */
92         ConnectionTimeout = -110, //  -ETIMEDOUT, /**< Connection timed out */
93         ConnectionRefused = -111, //  -ECONNREFUSED, /**< Connection refused */
94         Hostdown = -112, //  -EHOSTDOWN, /**< Host is down */
95         NoRouteToHost = -113, //  -EHOSTUNREACH, /**< No route to host */
96         AlreadyInProgress = -114, //  -EALREADY, /**< Operation already in progress */
97         NowInProgress = -115, //  -EINPROGRESS, /**< Operation now in progress */
98         StaleNfsFileHandle = -116, //  -ESTALE, /**< Stale NFS file handle */
99         StructureUnclean = -117, //  -EUCLEAN, /**< Structure needs cleaning */
100         NotXenixNamedTypeFile = -118, //  -ENOTNAM, /**< Not a XENIX named type file */
101         NoXenixSemaphoresAvailable = -119, //  -ENAVAIL, /**< No XENIX semaphores available */
102         IsNamedTypeFile = -120, //  -EISNAM, /**< Is a named type file */
103         RemoteIo = -121, //  -EREMOTEIO, /**< Remote I/O error */
104         QuotaExceeded = -122, //  -EDQUOT, /**< Quota exceeded */
105         NoMedium = -123, //  -ENOMEDIUM, /**< No medium found */
106         WrongMediumType = -124, //  -EMEDIUMTYPE, /**< Wrong medium type */
107         Canceled = -125, //  -ECANCELED, /**< Operation Canceled */
108         KeyNotAvailable = -126, //  -ENOKEY, /**< Required key not available */
109         KeyExpired = -127, //  -EKEYEXPIRED, /**< Key has expired */
110         KeyRevoked = -128, //  -EKEYREVOKED, /**< Key has been revoked */
111         KeyRejected = -129, //  -EKEYREJECTED, /**< Key was rejected by service */
112
113         OwnerDead = -130, //  -EOWNERDEAD, /**< Owner died (for robust mutexes) */
114
115         Unknown = -1073741824, //  TIZEN_ERROR_MIN_PLATFORM_ERROR, /**< Unknown error */
116
117         TimedOut,   // /**< Time out */
118         NotSupported, // /**< Not Supported */
119         UserNotConsented,//  /**< Not Consented */
120         EndofCollection  //
121     }
122 }