os/kernelhwsrv/kernel/eka/include/e32err.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/include/e32err.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,642 @@
     1.4 +// Copyright (c) 1994-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// e32\include\e32err.h
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +/**
    1.22 + @file
    1.23 + @publishedAll
    1.24 + @released
    1.25 +*/
    1.26 +
    1.27 +#ifndef __E32ERR_H__
    1.28 +#define __E32ERR_H__
    1.29 +#include <e32def.h>
    1.30 +#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
    1.31 +#include <e32def_private.h>
    1.32 +#endif
    1.33 +
    1.34 +
    1.35 +/**
    1.36 +System wide error code 0 : this represents the no-error condition.
    1.37 +
    1.38 +A system wide error code indicates an error in the environment, or in
    1.39 +user input from which a program may recover.
    1.40 +*/
    1.41 +const TInt KErrNone=0;                   
    1.42 +
    1.43 +
    1.44 +
    1.45 +
    1.46 +/**
    1.47 +System wide error code -1 : item not found.
    1.48 +
    1.49 +A system wide error code indicates an error in the environment, or in
    1.50 +user input from which a program may recover.
    1.51 +*/
    1.52 +const TInt KErrNotFound=(-1); // Must remain set to -1
    1.53 +
    1.54 +
    1.55 +
    1.56 +
    1.57 +/**
    1.58 +System wide error code -2 : an error that has no specific categorisation.
    1.59 +
    1.60 +A system wide error code indicates an error in the environment, or in
    1.61 +user input from which a program may recover.
    1.62 +*/
    1.63 +const TInt KErrGeneral=(-2);
    1.64 +
    1.65 +
    1.66 +
    1.67 +
    1.68 +/**
    1.69 +System wide error code -3 : indicates an operation that has been cancelled.
    1.70 +
    1.71 +A system wide error code indicates an error in the environment, or in
    1.72 +user input from which a program may recover.
    1.73 +*/
    1.74 +const TInt KErrCancel=(-3);
    1.75 +
    1.76 +
    1.77 +
    1.78 +
    1.79 +/**
    1.80 +System wide error code -4 : an attempt to allocate memory has failed.
    1.81 +
    1.82 +A system wide error code indicates an error in the environment, or in
    1.83 +user input from which a program may recover.
    1.84 +*/
    1.85 +const TInt KErrNoMemory=(-4);
    1.86 +
    1.87 +
    1.88 +
    1.89 +
    1.90 +/**
    1.91 +System wide error code -5 : some functionality is not supported in a given context.
    1.92 +
    1.93 +A system wide error code indicates an error in the environment, or in
    1.94 +user input from which a program may recover.
    1.95 +
    1.96 +There may be many reasons for this; for example, a device may not support
    1.97 +some specific behaviour.
    1.98 +*/
    1.99 +const TInt KErrNotSupported=(-5);
   1.100 +
   1.101 +
   1.102 +
   1.103 +
   1.104 +/**
   1.105 +System wide error code -6 : an argument is out of range.
   1.106 +
   1.107 +A system wide error code indicates an error in the environment, or in
   1.108 +user input from which a program may recover.
   1.109 +*/
   1.110 +const TInt KErrArgument=(-6);
   1.111 +
   1.112 +
   1.113 +
   1.114 +
   1.115 +/**
   1.116 +System wide error code -7 : a calculation has lost precision.
   1.117 +
   1.118 +A system wide error code indicates an error in the environment, or in
   1.119 +user input from which a program may recover.
   1.120 +
   1.121 +This error arises when converting from an internal 96-bit real representation
   1.122 +to a TReal32; the exponent of the internal representation is so small
   1.123 +that the 32-bit real cannot contain it.
   1.124 +*/
   1.125 +const TInt KErrTotalLossOfPrecision=(-7);
   1.126 +
   1.127 +
   1.128 +
   1.129 +
   1.130 +/**
   1.131 +System wide error code -8 : an invalid handle has been passed.
   1.132 +
   1.133 +A system wide error code indicates an error in the environment, or in
   1.134 +user input from which a program may recover.
   1.135 +
   1.136 +A function involving a resource owned by a server or the kernel has
   1.137 +specified an invalid handle.
   1.138 +*/
   1.139 +const TInt KErrBadHandle=(-8);
   1.140 +
   1.141 +
   1.142 +
   1.143 +
   1.144 +/**
   1.145 +System wide error code -9 : indicates an overflow in some operation.
   1.146 +
   1.147 +A system wide error code indicates an error in the environment, or in
   1.148 +user input from which a program may recover.
   1.149 +
   1.150 +In the context of mathematical or time/date functions, indicates a calculation
   1.151 +that has produced arithmetic overflow exceeding the bounds allowed by
   1.152 +the representation.
   1.153 +
   1.154 +In the context of data transfer, indicates that a buffer has over-filled
   1.155 +without being emptied soon enough.
   1.156 +*/
   1.157 +const TInt KErrOverflow=(-9);
   1.158 +
   1.159 +
   1.160 +
   1.161 +
   1.162 +/**
   1.163 +System wide error code -10 : indicates an underflow in some operation.
   1.164 +
   1.165 +A system wide error code indicates an error in the environment, or in
   1.166 +user input from which a program may recover.
   1.167 +
   1.168 +In the context of mathematical or time/date functions, indicates a calculation
   1.169 +that has produced a result smaller than the smallest magnitude of
   1.170 +a finite number allowed by the representation.
   1.171 +
   1.172 +In the context of data transfer, indicates that a buffer was under-filled
   1.173 +when data was required.
   1.174 +*/
   1.175 +const TInt KErrUnderflow=(-10);
   1.176 +
   1.177 +
   1.178 +
   1.179 +
   1.180 +/**
   1.181 +System wide error code -11 : an object already exists.
   1.182 +
   1.183 +A system wide error code indicates an error in the environment, or in
   1.184 +user input from which a program may recover.
   1.185 +
   1.186 +An object of some name/type is to be created, but an object of
   1.187 +that name/type already exists.
   1.188 +*/
   1.189 +const TInt KErrAlreadyExists=(-11);
   1.190 +
   1.191 +
   1.192 +
   1.193 +
   1.194 +/**
   1.195 +System wide error code -12 : in the context of file operations, a path
   1.196 +was not found.
   1.197 +
   1.198 +A system wide error code indicates an error in the environment, or in
   1.199 +user input from which a program may recover.
   1.200 +*/
   1.201 +const TInt KErrPathNotFound=(-12);
   1.202 +
   1.203 +
   1.204 +
   1.205 +
   1.206 +/**
   1.207 +System wide error code -13 : a handle refers to a thread that has died.
   1.208 +
   1.209 +A system wide error code indicates an error in the environment, or in
   1.210 +user input from which a program may recover.
   1.211 +*/
   1.212 +const TInt KErrDied=(-13);
   1.213 +
   1.214 +
   1.215 +
   1.216 +
   1.217 +/**
   1.218 +System wide error code -14 : a requested resource is already in exclusive use.
   1.219 +
   1.220 +A system wide error code indicates an error in the environment, or in
   1.221 +user input from which a program may recover.
   1.222 +*/
   1.223 +const TInt KErrInUse=(-14);
   1.224 +
   1.225 +
   1.226 +
   1.227 +
   1.228 +/**
   1.229 +System wide error code -15 : client/server send/receive operation cannot run,
   1.230 +because the server has terminated.
   1.231 +
   1.232 +A system wide error code indicates an error in the environment, or in
   1.233 +user input from which a program may recover.
   1.234 +*/
   1.235 +const TInt KErrServerTerminated=(-15);
   1.236 +
   1.237 +
   1.238 +
   1.239 +
   1.240 +/**
   1.241 +System wide error code -16 : a client/server send/receive operation cannot run,
   1.242 +because the server is busy handling another request.
   1.243 +
   1.244 +A system wide error code indicates an error in the environment, or in
   1.245 +user input from which a program may recover.
   1.246 +*/
   1.247 +const TInt KErrServerBusy=(-16);
   1.248 +
   1.249 +
   1.250 +
   1.251 +
   1.252 +/**
   1.253 +System wide error code -17 : indicates that an operation is complete,
   1.254 +successfully or otherwise.
   1.255 +
   1.256 +A system wide error code indicates an error in the environment, or in
   1.257 +user input from which a program may recover.
   1.258 +
   1.259 +This code may be used to indicate that some follow on operation can take place.
   1.260 +It does not necessarily indicate an error condition.
   1.261 +*/
   1.262 +const TInt KErrCompletion=(-17);
   1.263 +
   1.264 +
   1.265 +
   1.266 +
   1.267 +/**
   1.268 +System wide error code -18 : indicates that a device required by an i/o operation
   1.269 +is not ready to start operations.
   1.270 +
   1.271 +A system wide error code indicates an error in the environment, or in
   1.272 +user input from which a program may recover.
   1.273 +
   1.274 +A common reason for returning this code is because a device has not been
   1.275 +initialised, or has no power.
   1.276 +*/
   1.277 +const TInt KErrNotReady=(-18);
   1.278 +
   1.279 +
   1.280 +
   1.281 +
   1.282 +/**
   1.283 +System wide error code -19 : a device is of unknown type.
   1.284 +
   1.285 +A system wide error code indicates an error in the environment, or in
   1.286 +user input from which a program may recover.
   1.287 +*/
   1.288 +const TInt KErrUnknown=(-19);
   1.289 +
   1.290 +
   1.291 +
   1.292 +
   1.293 +/**
   1.294 +System wide error code -20 : indicates that some media is not formatted properly,
   1.295 +or links between sections of it have been corrupted.
   1.296 +
   1.297 +A system wide error code indicates an error in the environment, or in
   1.298 +user input from which a program may recover.
   1.299 +*/
   1.300 +const TInt KErrCorrupt=(-20);
   1.301 +
   1.302 +
   1.303 +
   1.304 +
   1.305 +/**
   1.306 +System wide error code -21 : access to a file is denied, because the permissions on
   1.307 +the file do not allow the requested operation to be performed.
   1.308 +
   1.309 +A system wide error code indicates an error in the environment, or in
   1.310 +user input from which a program may recover.
   1.311 +*/
   1.312 +const TInt KErrAccessDenied=(-21);
   1.313 +
   1.314 +
   1.315 +
   1.316 +
   1.317 +/**
   1.318 +System wide error code -22 : an operation cannot be performed, because the part
   1.319 +of the file to be read or written is locked.
   1.320 +
   1.321 +A system wide error code indicates an error in the environment, or in
   1.322 +user input from which a program may recover.
   1.323 +*/
   1.324 +const TInt KErrLocked=(-22);
   1.325 +
   1.326 +
   1.327 +
   1.328 +
   1.329 +/**
   1.330 +System wide error code -23 : during a file write operation, not all the data
   1.331 +could be written.
   1.332 +
   1.333 +A system wide error code indicates an error in the environment, or in
   1.334 +user input from which a program may recover.
   1.335 +*/
   1.336 +const TInt KErrWrite=(-23);
   1.337 +
   1.338 +
   1.339 +
   1.340 +
   1.341 +/**
   1.342 +System wide error code -24 : a volume which was to be used for a file system
   1.343 +operation has been dismounted.
   1.344 +
   1.345 +A system wide error code indicates an error in the environment, or in
   1.346 +user input from which a program may recover.
   1.347 +*/
   1.348 +const TInt KErrDisMounted=(-24);
   1.349 +
   1.350 +
   1.351 +
   1.352 +
   1.353 +/**
   1.354 +System wide error code -25 : indicates that end of file has been reached.
   1.355 +
   1.356 +A system wide error code indicates an error in the environment, or in
   1.357 +user input from which a program may recover.
   1.358 +
   1.359 +Note that RFile::Read() is a higher-level interface. When the end of
   1.360 +the file is reached, it returns zero bytes in the destination descriptor, and
   1.361 +a KErrNone return value. KErrEof is not used for this purpose; other error
   1.362 +conditions are returned only if some other error condition was indicated on
   1.363 +the file.
   1.364 +*/
   1.365 +const TInt KErrEof=(-25);
   1.366 +
   1.367 +
   1.368 +
   1.369 +
   1.370 +/**
   1.371 +System wide error code -26 : a write operation cannot complete, because the disk
   1.372 +is full.
   1.373 +
   1.374 +A system wide error code indicates an error in the environment, or in
   1.375 +user input from which a program may recover.
   1.376 +*/
   1.377 +const TInt KErrDiskFull=(-26);
   1.378 +
   1.379 +
   1.380 +
   1.381 +
   1.382 +/**
   1.383 +System wide error code -27 : a driver DLL is of the wrong type.
   1.384 +
   1.385 +A system wide error code indicates an error in the environment, or in
   1.386 +user input from which a program may recover.
   1.387 +*/
   1.388 +const TInt KErrBadDriver=(-27);
   1.389 +
   1.390 +
   1.391 +
   1.392 +
   1.393 +/**
   1.394 +System wide error code -28 : a file name or other object name does not conform to
   1.395 +the required syntax.
   1.396 +
   1.397 +A system wide error code indicates an error in the environment, or in
   1.398 +user input from which a program may recover.
   1.399 +*/
   1.400 +const TInt KErrBadName=(-28);
   1.401 +
   1.402 +
   1.403 +
   1.404 +
   1.405 +/**
   1.406 +System wide error code -29 : a communication line has failed.
   1.407 +
   1.408 +A system wide error code indicates an error in the environment, or in
   1.409 +user input from which a program may recover.
   1.410 +*/
   1.411 +const TInt KErrCommsLineFail=(-29);
   1.412 +
   1.413 +
   1.414 +
   1.415 +
   1.416 +/**
   1.417 +System wide error code -30 : a frame error has occurred in
   1.418 +a communications operation.
   1.419 +
   1.420 +A system wide error code indicates an error in the environment, or in
   1.421 +user input from which a program may recover.
   1.422 +*/
   1.423 +const TInt KErrCommsFrame=(-30);
   1.424 +
   1.425 +
   1.426 +
   1.427 +
   1.428 +/**
   1.429 +System wide error code -31 : an overrun has been detected by
   1.430 +a communications driver.
   1.431 +
   1.432 +A system wide error code indicates an error in the environment, or in
   1.433 +user input from which a program may recover.
   1.434 +*/
   1.435 +const TInt KErrCommsOverrun=(-31);
   1.436 +
   1.437 +
   1.438 +
   1.439 +
   1.440 +/**
   1.441 +System wide error code -32 : a parity error has occurred in communications.
   1.442 +
   1.443 +A system wide error code indicates an error in the environment, or in
   1.444 +user input from which a program may recover.
   1.445 +*/
   1.446 +const TInt KErrCommsParity=(-32);
   1.447 +
   1.448 +
   1.449 +
   1.450 +
   1.451 +/**
   1.452 +System wide error code -33 : an operation has timed out.
   1.453 +
   1.454 +A system wide error code indicates an error in the environment, or in
   1.455 +user input from which a program may recover.
   1.456 +*/
   1.457 +const TInt KErrTimedOut=(-33);
   1.458 +
   1.459 +
   1.460 +
   1.461 +
   1.462 +/**
   1.463 +System wide error code -34 : a session could not connect.
   1.464 +
   1.465 +A system wide error code indicates an error in the environment, or in
   1.466 +user input from which a program may recover.
   1.467 +*/
   1.468 +const TInt KErrCouldNotConnect=(-34);
   1.469 +
   1.470 +
   1.471 +
   1.472 +
   1.473 +/**
   1.474 +System wide error code -35 : a session could not disconnect.
   1.475 +
   1.476 +A system wide error code indicates an error in the environment, or in
   1.477 +user input from which a program may recover.
   1.478 +*/
   1.479 +const TInt KErrCouldNotDisconnect=(-35);
   1.480 +
   1.481 +
   1.482 +
   1.483 +
   1.484 +/**
   1.485 +System wide error code -36 : a function could not be executed because the required
   1.486 +session was disconnected.
   1.487 +
   1.488 +A system wide error code indicates an error in the environment, or in
   1.489 +user input from which a program may recover.
   1.490 +*/
   1.491 +const TInt KErrDisconnected=(-36);
   1.492 +
   1.493 +
   1.494 +
   1.495 +
   1.496 +/**
   1.497 +System wide error code -37 : a library entry point was not of the required type.
   1.498 +
   1.499 +A system wide error code indicates an error in the environment, or in
   1.500 +user input from which a program may recover.
   1.501 +*/
   1.502 +const TInt KErrBadLibraryEntryPoint=(-37);
   1.503 +
   1.504 +
   1.505 +
   1.506 +
   1.507 +/**
   1.508 +System wide error code -38 : a non-descriptor parameter was passed by
   1.509 +a client interface, when a server expected a descriptor.
   1.510 +
   1.511 +A system wide error code indicates an error in the environment, or in
   1.512 +user input from which a program may recover.
   1.513 +*/
   1.514 +const TInt KErrBadDescriptor=(-38);
   1.515 +
   1.516 +
   1.517 +
   1.518 +
   1.519 +/**
   1.520 +System wide error code -39 : an operation has been aborted.
   1.521 +
   1.522 +A system wide error code indicates an error in the environment, or in
   1.523 +user input from which a program may recover.
   1.524 +*/
   1.525 +const TInt KErrAbort=(-39);
   1.526 +
   1.527 +
   1.528 +
   1.529 +
   1.530 +/**
   1.531 +System wide error code -40 : a number was too big.
   1.532 +
   1.533 +A system wide error code indicates an error in the environment, or in
   1.534 +user input from which a program may recover.
   1.535 +*/
   1.536 +const TInt KErrTooBig=(-40);
   1.537 +
   1.538 +
   1.539 +
   1.540 +
   1.541 +/**
   1.542 +System wide error code -41 : a divide-by-zero operation has been attempted.
   1.543 +
   1.544 +A system wide error code indicates an error in the environment, or in
   1.545 +user input from which a program may recover.
   1.546 +*/
   1.547 +const TInt KErrDivideByZero=(-41);		// Added by AnnW
   1.548 +
   1.549 +
   1.550 +
   1.551 +
   1.552 +/**
   1.553 +System wide error code -42 : insufficient power was available to
   1.554 +complete an operation.
   1.555 +
   1.556 +A system wide error code indicates an error in the environment, or in
   1.557 +user input from which a program may recover.
   1.558 +*/
   1.559 +const TInt KErrBadPower=(-42);
   1.560 +
   1.561 +
   1.562 +
   1.563 +
   1.564 +/**
   1.565 +System wide error code -43 : an operation on a directory has failed.
   1.566 +
   1.567 +A system wide error code indicates an error in the environment, or in
   1.568 +user input from which a program may recover.
   1.569 +*/
   1.570 +const TInt KErrDirFull=(-43);
   1.571 +
   1.572 +
   1.573 +
   1.574 +
   1.575 +/**
   1.576 +System wide error code -44 : an operation cannot be performed because
   1.577 +the necessary hardware is not available.
   1.578 +
   1.579 +A system wide error code indicates an error in the environment, or in
   1.580 +user input from which a program may recover.
   1.581 +*/
   1.582 +const TInt KErrHardwareNotAvailable=(-44);
   1.583 +
   1.584 +
   1.585 +
   1.586 +
   1.587 +/**
   1.588 +System wide error code -45 : the completion status when an outstanding
   1.589 +client/server message is completed because a shared session has been closed.
   1.590 +
   1.591 +A system wide error code indicates an error in the environment, or in
   1.592 +user input from which a program may recover.
   1.593 +*/
   1.594 +const TInt KErrSessionClosed=(-45);
   1.595 +
   1.596 +
   1.597 +
   1.598 +
   1.599 +/**
   1.600 +System wide error code -46 : an operation cannot be performed due to
   1.601 +a potential security violation.
   1.602 +
   1.603 +A system wide error code indicates an error in the environment, or in
   1.604 +user input from which a program may recover.
   1.605 +*/
   1.606 +const TInt KErrPermissionDenied=(-46);
   1.607 +
   1.608 +
   1.609 +
   1.610 +/**
   1.611 +System wide error code -47 : a requested extension function is not
   1.612 +supported by the object concerned.
   1.613 +
   1.614 +*/
   1.615 +const TInt KErrExtensionNotSupported=(-47);
   1.616 +
   1.617 +
   1.618 +
   1.619 +/**
   1.620 +System wide error code -48 : a break has occurred in
   1.621 +a communications operation.
   1.622 +
   1.623 +A system wide error code indicates an error in the environment, or in
   1.624 +user input from which a program may recover.
   1.625 +*/
   1.626 +const TInt KErrCommsBreak=(-48);
   1.627 +
   1.628 +
   1.629 +/**
   1.630 +System wide error code -49 : a trusted time source could not be found
   1.631 +and any time value given in conjunction with this error code should 
   1.632 +not be trusted as correct.
   1.633 +*/
   1.634 +const TInt KErrNoSecureTime =(-49);
   1.635 +
   1.636 +
   1.637 + 
   1.638 +/**
   1.639 +System wide error code -50 : a corrupt surrogate is found when processing
   1.640 +a descriptor or a text buffer.
   1.641 +*/
   1.642 +const TInt KErrCorruptSurrogateFound = (-50);
   1.643 +
   1.644 +
   1.645 +#endif