2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Filename: UCCS_ErrorCodes.h
20 #ifndef __UCCSCERRORCODES_H__
21 #define __UCCSCERRORCODES_H__
24 /***********************************************************************************
28 **********************************************************************************/
30 UCCS_ERROR_NONE = 0, // This is returned from the new services for no error
33 // (2a) Returned by Invoke -- and then in turn by the execute command (IOutput::Error)
34 UCCS_SERVICELISTFULL = -300,
36 UCCS_INVALIDSERVICEID,
37 UCCS_CANTSTARTSERVICE,
40 UCCS_INVALIDSERVICEINDEX,
41 UCCS_NO_MATCHING_GENERIC_SERVICE_FOUND,
43 // (2b) Returned by ParseCommand -- and then in turn by the execute command (IOutput::Error)
44 UCCS_PARSERFAILEDTOSTOREVALUE,
46 // (2c) Returned by Execute Command (IOutput::Error)
51 UCCS_REQUIREDVALUEERROR,
52 UCCS_REQUIREDVALUEINCORRECT,
53 UCCS_REQUIREDNOTVALUEERROR,
54 UCCS_REQUIREDNOTVALUEMATCH,
56 UCCS_CHECKVALUEINCORRECT,
57 UCCS_CHECKNOTVALUEERROR,
58 UCCS_CHECKNOTVALUEMATCH,
60 // (2d) Returned from other classes that eventually get returned by execute command
66 // (2e) Errors that are only used direct to IOutput
67 UCCS_UNKNOWNCONTROLCOMMAND,
70 // (3a) Errors returned to the control commands directly from CBatchEngine
71 UCCS_ALREADYSTARTEDUSECASE,
72 UCCS_NOUSECASERUNNING,
73 UCCS_FAILEDTOCREATEEXECUTETHREAD,
74 UCCS_COMMANDEXECUTIONNOTSTARTEDYET,
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,
89 /***********************************************************************************
93 **********************************************************************************/
94 #define GetUccsErrorStringI(x) GetUccsErrorString((TUCCSErrors)(x))
97 /***********************************************************************************
101 **********************************************************************************/
102 char *GetUccsErrorString( TUCCSErrors aErrorCode );
103 char *GetPenstdErrorString( int aErrorCode );
106 #endif __UCCSCERRORCODES_H__