epoc32/include/networkemulator/uccs_errorcodes.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * 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
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description: 
    15 * Filename: UCCS_ErrorCodes.h
    16 *
    17 */
    18 
    19 
    20 #ifndef __UCCSCERRORCODES_H__
    21 #define __UCCSCERRORCODES_H__
    22 
    23 
    24 /***********************************************************************************
    25  *
    26  * Types
    27  *
    28  **********************************************************************************/
    29 typedef enum {
    30 	UCCS_ERROR_NONE			= 0, // This is returned from the new services for no error
    31 	UCCS_OK					= 100,
    32 
    33 	// (2a) Returned by Invoke -- and then in turn by the execute command (IOutput::Error)
    34 	UCCS_SERVICELISTFULL = -300,					
    35 	UCCS_NOSERVICEID,
    36 	UCCS_INVALIDSERVICEID,					
    37 	UCCS_CANTSTARTSERVICE,
    38 	UCCS_CANTSTOPSERVICE,
    39 	UCCS_NOSERVICEHOST,
    40 	UCCS_INVALIDSERVICEINDEX,				
    41     UCCS_NO_MATCHING_GENERIC_SERVICE_FOUND,
    42 
    43 	// (2b) Returned by ParseCommand -- and then in turn by the execute command (IOutput::Error)
    44 	UCCS_PARSERFAILEDTOSTOREVALUE,
    45 
    46 	// (2c) Returned by Execute Command (IOutput::Error)
    47 	UCCS_UNKNOWNCOMMAND,
    48 	UCCS_REPLAYCOMMAND,
    49 	UCCS_NORESULT,
    50 	UCCS_QUIT,
    51 	UCCS_REQUIREDVALUEERROR,
    52 	UCCS_REQUIREDVALUEINCORRECT,		
    53 	UCCS_REQUIREDNOTVALUEERROR,
    54 	UCCS_REQUIREDNOTVALUEMATCH,
    55 	UCCS_CHECKVALUEERROR,
    56 	UCCS_CHECKVALUEINCORRECT,
    57 	UCCS_CHECKNOTVALUEERROR,			
    58 	UCCS_CHECKNOTVALUEMATCH,
    59 
    60 	// (2d) Returned from other classes that eventually get returned by execute command
    61 	UCCS_FIELDNOTFOUND,
    62 	UCCS_SYSTEMERROR,
    63 	UCCS_RECORDFULL,
    64 	UCCS_NOMORECOMMANDS,				
    65 
    66 	// (2e) Errors that are only used direct to IOutput
    67 	UCCS_UNKNOWNCONTROLCOMMAND,
    68 	UCCS_CLIENT_ERROR,
    69 
    70 	// (3a) Errors returned to the control commands directly from CBatchEngine
    71 	UCCS_ALREADYSTARTEDUSECASE,
    72 	UCCS_NOUSECASERUNNING,
    73 	UCCS_FAILEDTOCREATEEXECUTETHREAD,
    74 	UCCS_COMMANDEXECUTIONNOTSTARTEDYET,
    75 	UCCS_SCRIPTFINISHED,
    76 
    77 	// (3b) Errors returned from other classes that eventually get returned to control commands
    78 	UCCS_CANTOPENSCRIPTFILE,
    79 	UCCS_CANTOPENOUTPUTFILE,				
    80 	UCCS_VARIABLEVALTOOLONG,
    81 	UCCS_VARIABLEDOESNOTEXIST,
    82 	UCCS_NOENVIRONMENT,
    83 
    84 	// (4) End
    85 	UCCS_LAST							
    86 } TUCCSErrors;
    87 
    88 
    89 /***********************************************************************************
    90  *
    91  * Definitions
    92  *
    93  **********************************************************************************/
    94 #define GetUccsErrorStringI(x)	GetUccsErrorString((TUCCSErrors)(x))
    95 
    96 
    97 /***********************************************************************************
    98  *
    99  * Prototypes
   100  *
   101  **********************************************************************************/
   102 char *GetUccsErrorString( TUCCSErrors aErrorCode );
   103 char *GetPenstdErrorString( int aErrorCode );
   104 
   105 
   106 #endif __UCCSCERRORCODES_H__