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