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