2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 namespace Tizen.Internals.Errors
20 /// Error codes used inside Tizen .NET API implementation.
22 /// <since_tizen> 3 </since_tizen>
23 public enum ErrorCode : int
31 /// Operation not permitted.
33 NotPermitted = -1, // -EPERM
36 /// No such file or directory.
38 NoSuchFile = -2, // -ENOENT
43 NoSuchProcess = -3, // -ESRCH
46 /// Interrupted system call.
48 InterruptedSysCall = -4, // -EINTR
56 /// No such device or address.
58 NoSuchDevice = -6, // -ENXIO
61 /// Argument list too long.
63 ArgumentListTooLong = -7, // -E2BIG
66 /// Executable format error.
68 ExecFormatError = -8, // -ENOEXEC
73 BadFileNumber = -9, // -EBADF
78 TryAgain = -11, // -EAGAIN
83 OutOfMemory = -12, // -ENOMEM
86 /// Permission denied.
88 PermissionDenied = -13, // -EACCES
93 BadAddress = -14, // -EFAULT
96 /// Block device required.
98 BlockDeviceRequired = -15, // -ENOTBLK
101 /// Device or resource busy.
103 ResourceBusy = -16, // -EBUSY
108 FileExists = -17, // -EEXIST
111 /// Cross-device link.
113 CrossDeviceLink = -18, // -EXDEV
118 NotaDirectory = -20, // -ENOTDIR
123 IsADirectory = -21, // -EISDIR
126 /// Invalid function parameter.
128 InvalidParameter = -22, // -EINVAL
131 /// File table overflow.
133 FileTableOverflow = -23, // -ENFILE
136 /// Too many open files.
138 TooManyOpenFiles = -24, // -EMFILE
143 TooNotaTerminal = -25, // -ENOTTY
146 /// Too text file busy.
148 TooTextFileBusy = -26, // -ETXTBSY
153 FileTooLarge = -27, // -EFBIG
156 /// No space left on device.
158 FileNoSpaceOnDevice = -28, // -ENOSPC
163 IllegalSeek = -29, // -ESPIPE
166 /// Read-only file system.
168 ReadOnlyFilesystem = -30, // -EROFS
171 /// No data available.
173 NoData = -61, // -ENODATA
178 TooManyLinks = -31, // -EMLINK
183 BrokenPipe = -32, // -EPIPE
186 /// Math argument out of domain of the function.
188 ArgumentOutOfDomain = -33, // -EDOM
191 /// Math result not representable.
193 ResultOutOfRange = -34, // -ERANGE
196 /// Resource deadlock would occur.
198 WouldCauseDeadlock = -35, // -EDEADLK
201 /// File name too long.
203 FileNameTooLong = -36, // -ENAMETOOLONG
206 /// No record locks available.
208 FileNoLocksAvailable = -37, // -ENOLCK
211 /// Function not implemented.
213 InvalidOperation = -38, // -ENOSYS
216 /// Directory not empty.
218 DirNotEmpty = -39, // -ENOTEMPTY
221 /// Too many symbolic links encountered.
223 TooManySymbolicLinks = -40, // -ELOOP
226 /// Operation would block.
228 WouldBlock = -11, // TryAgain (-EAGAIN)
231 /// Accessing a corrupted shared library.
233 CorruptedSharedLib = -80, // -ELIBBAD
236 /// .lib section in a.out corrupted.
238 LibSectionCorrupted = -81, // -ELIBSCN
241 /// Attempting to link in too many shared libraries.
243 LinkTooManySharedLib = -82, // -ELIBMAX
246 /// Cannot execute a shared library directly.
248 SharedLibExec = -83, // -ELIBEXEC
251 /// Illegal byte sequence.
253 IllegalByteSeq = -84, // -EILSEQ
256 /// Interrupted system call should be restarted.
258 SystemCallRestart = -85, // -ERESTART
261 /// Streams pipe error.
263 StreamsPipe = -86, // -ESTRPIPE
268 TooManyUsers = -87, // -EUSERS
271 /// Socket operation on non-socket.
273 NonSocket = -88, // -ENOTSOCK
276 /// Destination address required.
278 NoDestAddress = -89, // -EDESTADDRREQ
281 /// Message too long.
283 MsgTooLong = -90, // -EMSGSIZE
286 /// Protocol wrong type for socket.
288 ProtocolWrongType = -91, // -EPROTOTYPE
291 /// Protocol not available.
293 ProtocolNotAvaliable = -92, // -ENOPROTOOPT
296 /// Protocol not supported.
298 ProtocolNotSupported = -93, // -EPROTONOSUPPORT
301 /// Socket type not supported.
303 SocketTypeNotSupported = -94, // -ESOCKTNOSUPPORT
306 /// Operation not supported on the transport endpoint.
308 EndpointOperatinNotSupported = -95, // -EOPNOTSUPP
311 /// Protocol family not supported.
313 ProtocolFamilyNotSupported = -96, // -EPFNOSUPPORT
316 /// Address family not supported by protocol.
318 AddressFamilyNotSupported = -97, // -EAFNOSUPPORT
321 /// Address already in use.
323 AddresInUse = -98, // -EADDRINUSE
326 /// Cannot assign requested address.
328 CannotAssignAddress = -99, // -EADDRNOTAVAIL
333 Networkdown = -100, // -ENETDOWN
336 /// Network unreachable.
338 NetworkUnreachable = -101, // -ENETUNREACH
341 /// Network dropped the connection because of the reset.
343 NetworkReset = -102, // -ENETRESET
346 /// Software caused the connection to abort.
348 ConnectionAborted = -103, // -ECONNABORTED
351 /// Connection reset by the peer.
353 ConnectionResetByPeer = -104, // -ECONNRESET
356 /// No buffer space available.
358 BufferSpace = -105, // -ENOBUFS
361 /// Transport endpoint already connected.
363 EndpointConnected = -106, // -EISCONN
366 /// Transport endpoint not connected.
368 EndpointNotConnected = -107, // -ENOTCONN
371 /// Cannot send after the transport endpoint shutdown.
373 EndpointShutdown = -108, // -ESHUTDOWN
376 /// Too many references: cannot splice.
378 TooManyReferences = -109, // -ETOOMANYREFS
381 /// Connection timed out.
383 ConnectionTimeout = -110, // -ETIMEDOUT
386 /// Connection refused.
388 ConnectionRefused = -111, // -ECONNREFUSED
393 Hostdown = -112, // -EHOSTDOWN
396 /// No route to host.
398 NoRouteToHost = -113, // -EHOSTUNREACH
401 /// Operation already in progress.
403 AlreadyInProgress = -114, // -EALREADY
406 /// Operation now in progress.
408 NowInProgress = -115, // -EINPROGRESS
411 /// Stale NFS file handle.
413 StaleNfsFileHandle = -116, // -ESTALE
416 /// Structure needs cleaning.
418 StructureUnclean = -117, // -EUCLEAN
421 /// Not a XENIX named type file.
423 NotXenixNamedTypeFile = -118, // -ENOTNAM
426 /// No XENIX semaphores available.
428 NoXenixSemaphoresAvailable = -119, // -ENAVAIL
431 /// Is a named type file.
433 IsNamedTypeFile = -120, // -EISNAM
436 /// Remote I/O error.
438 RemoteIo = -121, // -EREMOTEIO
443 QuotaExceeded = -122, // -EDQUOT
448 NoMedium = -123, // -ENOMEDIUM
451 /// Wrong medium type.
453 WrongMediumType = -124, // -EMEDIUMTYPE
456 /// Operation Canceled.
458 Canceled = -125, // -ECANCELED
461 /// Required key not available.
463 KeyNotAvailable = -126, // -ENOKEY
468 KeyExpired = -127, // -EKEYEXPIRED
471 /// Key has been revoked.
473 KeyRevoked = -128, // -EKEYREVOKED
476 /// Key was rejected by the service.
478 KeyRejected = -129, // -EKEYREJECTED
482 /// Owner died (for robust mutexes).
484 OwnerDead = -130, // -EOWNERDEAD
489 Unknown = -1073741824, // TIZEN_ERROR_MIN_PLATFORM_ERROR
507 /// The end of collection.