williamr@2: // Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // e32\include\e32err.h williamr@2: // williamr@2: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @file williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: #ifndef __E32ERR_H__ williamr@2: #define __E32ERR_H__ williamr@2: #include williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code 0 : this represents the no-error condition. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrNone=0; williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -1 : item not found. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrNotFound=(-1); // Must remain set to -1 williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -2 : an error that has no specific categorisation. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrGeneral=(-2); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -3 : indicates an operation that has been cancelled. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrCancel=(-3); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -4 : an attempt to allocate memory has failed. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrNoMemory=(-4); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -5 : some functionality is not supported in a given context. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: williamr@2: There may be many reasons for this; for example, a device may not support williamr@2: some specific behaviour. williamr@2: */ williamr@2: const TInt KErrNotSupported=(-5); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -6 : an argument is out of range. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrArgument=(-6); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -7 : a calculation has lost precision. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: williamr@2: This error arises when converting from an internal 96-bit real representation williamr@2: to a TReal32; the exponent of the internal representation is so small williamr@2: that the 32-bit real cannot contain it. williamr@2: */ williamr@2: const TInt KErrTotalLossOfPrecision=(-7); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -8 : an invalid handle has been passed. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: williamr@2: A function involving a resource owned by a server or the kernel has williamr@2: specified an invalid handle. williamr@2: */ williamr@2: const TInt KErrBadHandle=(-8); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -9 : indicates an overflow in some operation. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: williamr@2: In the context of mathematical or time/date functions, indicates a calculation williamr@2: that has produced arithmetic overflow exceeding the bounds allowed by williamr@2: the representation. williamr@2: williamr@2: In the context of data transfer, indicates that a buffer has over-filled williamr@2: without being emptied soon enough. williamr@2: */ williamr@2: const TInt KErrOverflow=(-9); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -10 : indicates an underflow in some operation. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: williamr@2: In the context of mathematical or time/date functions, indicates a calculation williamr@2: that has produced a result smaller than the smallest magnitude of williamr@2: a finite number allowed by the representation. williamr@2: williamr@2: In the context of data transfer, indicates that a buffer was under-filled williamr@2: when data was required. williamr@2: */ williamr@2: const TInt KErrUnderflow=(-10); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -11 : an object already exists. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: williamr@2: An object of some name/type is to be created, but an object of williamr@2: that name/type already exists. williamr@2: */ williamr@2: const TInt KErrAlreadyExists=(-11); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -12 : in the context of file operations, a path williamr@2: was not found. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrPathNotFound=(-12); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -13 : a handle refers to a thread that has died. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrDied=(-13); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -14 : a requested resource is already in exclusive use. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrInUse=(-14); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -15 : client/server send/receive operation cannot run, williamr@2: because the server has terminated. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrServerTerminated=(-15); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -16 : a client/server send/receive operation cannot run, williamr@2: because the server is busy handling another request. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrServerBusy=(-16); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -17 : indicates that an operation is complete, williamr@2: successfully or otherwise. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: williamr@2: This code may be used to indicate that some follow on operation can take place. williamr@2: It does not necessarily indicate an error condition. williamr@2: */ williamr@2: const TInt KErrCompletion=(-17); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -18 : indicates that a device required by an i/o operation williamr@2: is not ready to start operations. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: williamr@2: A common reason for returning this code is because a device has not been williamr@2: initialised, or has no power. williamr@2: */ williamr@2: const TInt KErrNotReady=(-18); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -19 : a device is of unknown type. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrUnknown=(-19); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -20 : indicates that some media is not formatted properly, williamr@2: or links between sections of it have been corrupted. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrCorrupt=(-20); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -21 : access to a file is denied, because the permissions on williamr@2: the file do not allow the requested operation to be performed. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrAccessDenied=(-21); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -22 : an operation cannot be performed, because the part williamr@2: of the file to be read or written is locked. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrLocked=(-22); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -23 : during a file write operation, not all the data williamr@2: could be written. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrWrite=(-23); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -24 : a volume which was to be used for a file system williamr@2: operation has been dismounted. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrDisMounted=(-24); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -25 : indicates that end of file has been reached. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: williamr@2: Note that RFile::Read() is a higher-level interface. When the end of williamr@2: the file is reached, it returns zero bytes in the destination descriptor, and williamr@2: a KErrNone return value. KErrEof is not used for this purpose; other error williamr@2: conditions are returned only if some other error condition was indicated on williamr@2: the file. williamr@2: */ williamr@2: const TInt KErrEof=(-25); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -26 : a write operation cannot complete, because the disk williamr@2: is full. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrDiskFull=(-26); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -27 : a driver DLL is of the wrong type. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrBadDriver=(-27); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -28 : a file name or other object name does not conform to williamr@2: the required syntax. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrBadName=(-28); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -29 : a communication line has failed. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrCommsLineFail=(-29); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -30 : a frame error has occurred in williamr@2: a communications operation. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrCommsFrame=(-30); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -31 : an overrun has been detected by williamr@2: a communications driver. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrCommsOverrun=(-31); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -32 : a parity error has occurred in communications. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrCommsParity=(-32); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -33 : an operation has timed out. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrTimedOut=(-33); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -34 : a session could not connect. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrCouldNotConnect=(-34); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -35 : a session could not disconnect. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrCouldNotDisconnect=(-35); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -36 : a function could not be executed because the required williamr@2: session was disconnected. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrDisconnected=(-36); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -37 : a library entry point was not of the required type. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrBadLibraryEntryPoint=(-37); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -38 : a non-descriptor parameter was passed by williamr@2: a client interface, when a server expected a descriptor. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrBadDescriptor=(-38); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -39 : an operation has been aborted. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrAbort=(-39); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -40 : a number was too big. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrTooBig=(-40); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -41 : a divide-by-zero operation has been attempted. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrDivideByZero=(-41); // Added by AnnW williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -42 : insufficient power was available to williamr@2: complete an operation. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrBadPower=(-42); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -43 : an operation on a directory has failed. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrDirFull=(-43); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -44 : an operation cannot be performed because williamr@2: the necessary hardware is not available. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrHardwareNotAvailable=(-44); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -45 : the completion status when an outstanding williamr@2: client/server message is completed because a shared session has been closed. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrSessionClosed=(-45); williamr@2: williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -46 : an operation cannot be performed due to williamr@2: a potential security violation. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrPermissionDenied=(-46); williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -47 : a requested extension function is not williamr@2: supported by the object concerned. williamr@2: williamr@2: */ williamr@2: const TInt KErrExtensionNotSupported=(-47); williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -48 : a break has occurred in williamr@2: a communications operation. williamr@2: williamr@2: A system wide error code indicates an error in the environment, or in williamr@2: user input from which a program may recover. williamr@2: */ williamr@2: const TInt KErrCommsBreak=(-48); williamr@2: williamr@2: williamr@2: /** williamr@2: System wide error code -49 : a trusted time source could not be found williamr@2: and any time value given in conjunction with this error code should williamr@2: not be trusted as correct. williamr@2: */ williamr@2: const TInt KErrNoSecureTime =(-49); williamr@2: williamr@2: #endif