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