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 public enum ErrorCode : int
30 /// Operation not permitted
32 NotPermitted = -1, // -EPERM
35 /// No such file or directory
37 NoSuchFile = -2, // -ENOENT
42 NoSuchProcess = -3, // -ESRCH
45 /// Interrupted system call
47 InterruptedSysCall = -4, // -EINTR
55 /// No such device or address
57 NoSuchDevice = -6, // -ENXIO
60 /// Argument list too long
62 ArgumentListTooLong = -7, // -E2BIG
67 ExecFormatError = -8, // -ENOEXEC
72 BadFileNumber = -9, // -EBADF
77 TryAgain = -11, // -EAGAIN
82 OutOfMemory = -12, // -ENOMEM
87 PermissionDenied = -13, // -EACCES
92 BadAddress = -14, // -EFAULT
95 /// Block device required
97 BlockDeviceRequired = -15, // -ENOTBLK
100 /// Device or resource busy
102 ResourceBusy = -16, // -EBUSY
107 FileExists = -17, // -EEXIST
110 /// Cross-device link
112 CrossDeviceLink = -18, // -EXDEV
117 NotaDirectory = -20, // -ENOTDIR
122 IsADirectory = -21, // -EISDIR
125 /// Invalid function parameter
127 InvalidParameter = -22, // -EINVAL
130 /// File table overflow
132 FileTableOverflow = -23, // -ENFILE
135 /// Too many open files
137 TooManyOpenFiles = -24, // -EMFILE
142 TooNotaTerminal = -25, // -ENOTTY
145 /// Too text file busy
147 TooTextFileBusy = -26, // -ETXTBSY
152 FileTooLarge = -27, // -EFBIG
155 /// No space left on device
157 FileNoSpaceOnDevice = -28, // -ENOSPC
162 IllegalSeek = -29, // -ESPIPE
165 /// Read-only file system
167 ReadOnlyFilesystem = -30, // -EROFS
170 /// No data available
172 NoData = -61, // -ENODATA
177 TooManyLinks = -31, // -EMLINK
182 BrokenPipe = -32, // -EPIPE
185 /// Math argument out of domain of func
187 ArgumentOutOfDomain = -33, // -EDOM
190 /// Math result not representable
192 ResultOutOfRange = -34, // -ERANGE
195 /// Resource deadlock would occur
197 WouldCauseDeadlock = -35, // -EDEADLK
200 /// File name too long
202 FileNameTooLong = -36, // -ENAMETOOLONG
205 /// No record locks available
207 FileNoLocksAvailable = -37, // -ENOLCK
210 /// Function not implemented
212 InvalidOperation = -38, // -ENOSYS
215 /// Directory not empty
217 DirNotEmpty = -39, // -ENOTEMPTY
220 /// Too many symbolic links encountered
222 TooManySymbolicLinks = -40, // -ELOOP
225 /// Operation would block
227 WouldBlock = -11, // TryAgain (-EAGAIN)
230 /// Accessing a corrupted shared library
232 CorruptedSharedLib = -80, // -ELIBBAD
235 /// .lib section in a.out corrupted
237 LibSectionCorrupted = -81, // -ELIBSCN
240 /// Attempting to link in too many shared libraries
242 LinkTooManySharedLib = -82, // -ELIBMAX
245 /// Cannot exec a shared library directly
247 SharedLibExec = -83, // -ELIBEXEC
250 /// Illegal byte sequence
252 IllegalByteSeq = -84, // -EILSEQ
255 /// Interrupted system call should be restarted
257 SystemCallRestart = -85, // -ERESTART
260 /// Streams pipe error
262 StreamsPipe = -86, // -ESTRPIPE
267 TooManyUsers = -87, // -EUSERS
270 /// Socket operation on non-socket
272 NonSocket = -88, // -ENOTSOCK
275 /// Destination address required
277 NoDestAddress = -89, // -EDESTADDRREQ
282 MsgTooLong = -90, // -EMSGSIZE
285 /// Protocol wrong type for socket
287 ProtocolWrongType = -91, // -EPROTOTYPE
290 /// Protocol not available
292 ProtocolNotAvaliable = -92, // -ENOPROTOOPT
295 /// Protocol not supported
297 ProtocolNotSupported = -93, // -EPROTONOSUPPORT
300 /// Socket type not supported
302 SocketTypeNotSupported = -94, // -ESOCKTNOSUPPORT
305 /// Operation not supported on transport endpoint
307 EndpointOperatinNotSupported = -95, // -EOPNOTSUPP
310 /// Protocol family not supported
312 ProtocolFamilyNotSupported = -96, // -EPFNOSUPPORT
315 /// Address family not supported by protocol
317 AddressFamilyNotSupported = -97, // -EAFNOSUPPORT
320 /// Address already in use
322 AddresInUse = -98, // -EADDRINUSE
325 /// Cannot assign requested address
327 CannotAssignAddress = -99, // -EADDRNOTAVAIL
332 Networkdown = -100, // -ENETDOWN
335 /// Network is unreachable
337 NetworkUnreachable = -101, // -ENETUNREACH
340 /// Network dropped connection because of reset
342 NetworkReset = -102, // -ENETRESET
345 /// Software caused connection abort
347 ConnectionAborted = -103, // -ECONNABORTED
350 /// Connection reset by peer
352 ConnectionResetByPeer = -104, // -ECONNRESET
355 /// No buffer space available
357 BufferSpace = -105, // -ENOBUFS
360 /// Transport endpoint is already connected
362 EndpointConnected = -106, // -EISCONN
365 /// Transport endpoint is not connected
367 EndpointNotConnected = -107, // -ENOTCONN
370 /// Cannot send after transport endpoint shutdown
372 EndpointShutdown = -108, // -ESHUTDOWN
375 /// Too many references: cannot splice
377 TooManyReferences = -109, // -ETOOMANYREFS
380 /// Connection timed out
382 ConnectionTimeout = -110, // -ETIMEDOUT
385 /// Connection refused
387 ConnectionRefused = -111, // -ECONNREFUSED
392 Hostdown = -112, // -EHOSTDOWN
397 NoRouteToHost = -113, // -EHOSTUNREACH
400 /// Operation already in progress
402 AlreadyInProgress = -114, // -EALREADY
405 /// Operation now in progress
407 NowInProgress = -115, // -EINPROGRESS
410 /// Stale NFS file handle
412 StaleNfsFileHandle = -116, // -ESTALE
415 /// Structure needs cleaning
417 StructureUnclean = -117, // -EUCLEAN
420 /// Not a XENIX named type file
422 NotXenixNamedTypeFile = -118, // -ENOTNAM
425 /// No XENIX semaphores available
427 NoXenixSemaphoresAvailable = -119, // -ENAVAIL
430 /// Is a named type file
432 IsNamedTypeFile = -120, // -EISNAM
437 RemoteIo = -121, // -EREMOTEIO
442 QuotaExceeded = -122, // -EDQUOT
447 NoMedium = -123, // -ENOMEDIUM
450 /// Wrong medium type
452 WrongMediumType = -124, // -EMEDIUMTYPE
455 /// Operation Canceled
457 Canceled = -125, // -ECANCELED
460 /// Required key not available
462 KeyNotAvailable = -126, // -ENOKEY
467 KeyExpired = -127, // -EKEYEXPIRED
470 /// Key has been revoked
472 KeyRevoked = -128, // -EKEYREVOKED
475 /// Key was rejected by service
477 KeyRejected = -129, // -EKEYREJECTED
481 /// Owner died (for robust mutexes)
483 OwnerDead = -130, // -EOWNERDEAD
488 Unknown = -1073741824, // TIZEN_ERROR_MIN_PLATFORM_ERROR
506 /// The end of collection