Location:
e32std.h
Supported from 5.0
Error codes are used to report errors from which a program may recover. They indicate an error in the environment or user input (such as insufficient memory, an argument out of range, or a non-connected communication link). Recovery action varies; often, it is to abandon the operation that was being performed.
const TInt KErrNotSupported
A function is not supported in a given context: for instance, because the device involved does not by its nature support a function or, in rare cases, because an API has been designed but not yet written.
const TInt KErrTotalLossOfPrecision
Arises when converting from an internal 96-bit real representation to
aTReal32
: the exponent of the internal representation is so small
that the 32-bit real cannot contain it.
const TInt KErrBadHandle
A function involving a resource owned by a server or the kernel has specified a bad handle.
const TInt KErrOverflow
In the context of mathematical or time/date functions, indicates a calculation has produced arithmetic overflow over the bounds allowed by a representation.
In the context of data transfer, indicates that a buffer has over-filled without being emptied soon enough.
const TInt KErrUnderflow
In the context of mathematical or time/date functions, indicates a calculation has produced a result smaller than the smallest magnitude of a finite number allowed by the representation.
In the context of data transfer, indicates that a buffer was under-filled when data was required.
const TInt KErrAlreadyExists
An object of some type was to be created, but an object of that name already exists.
const TInt KErrInUse
A requested resource is already in use by another thread (which is using it exclusively).
const TInt KErrServerTerminated
A client/server send-receive operation cannot execute, because the server has terminated.
const TInt KErrServerBusy
A client/server send-receive operation cannot execute, because the server is busy handling another request.
The send-receive tries to send the message ten times, at intervals of 200ms. This error code is returned if this process fails. It is usually an indication of a server which is failing to complete its servicing of requests.
const TInt KErrNotReady
A device required by an i/o operation is not ready to start operations, usually because it has not initialised, or has no power.
const TInt KErrCorrupt
The media is not formatted properly, or links between sections of it have been corrupted.
const TInt KErrAccessDenied
Access to a file was denied, because the permissions on the file do not allow the requested operation to be performed.
const TInt KErrLocked
The operation cannot be performed, because the part of the file to be read or written is locked.
const TInt KErrDisMounted
A volume which was to be used for a file system operation has been dismounted.
const TInt KErrEof
End of file has been reached.
Note that RFile::Read()
is a higher-level interface. When
the end of the file has been reached, it returns zero bytes in the destination
descriptor, and a KErrNone
return value. KErrEof
is
not used for this purpose, and other error conditions are returned only if some
other error condition was indicated on the file.
const TInt KErrBadName
A file name or other object name did not conform with the required syntax.
const TInt KErrDisconnected
A function could not be executed because the required session was disconnected.
const TInt KErrBadDescriptor
A non-descriptor parameter was passed to by a client interface, where the server expected one.
const TInt KErrHardwareNotAvailable
An operation cannot be performed because the necessary hardware is not available.