|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Impserror.h defines the base line for WV engine errors |
|
15 * |
|
16 * KImpsGeneralError Imps_ERROR_BASE |
|
17 * |
|
18 * The error codes retuned by WV engine are either: |
|
19 * a) General Symbian OS error code defined in e32std.h |
|
20 * b) WV engine internal error code defined in impserror.h, range is |
|
21 * KImpsGeneralError ... (KImpsGeneralError - 99). |
|
22 * c) CSP error code translated in form |
|
23 * KImpsGeneralError - <CSP-error-code> |
|
24 * |
|
25 */ |
|
26 |
|
27 |
|
28 #ifndef IMPSERRORS_H |
|
29 #define IMPSERRORS_H |
|
30 |
|
31 // the error range is -34000 -> -34999 |
|
32 #define Imps_ERROR_BASE -34000 |
|
33 |
|
34 |
|
35 // error codes must be defined as enum so that they can be |
|
36 // included by a source file that uses the error codes as ints |
|
37 |
|
38 // All errors are define relative to Imps_ERROR_BASE |
|
39 enum |
|
40 { |
|
41 // Unspecified error, used when no defined error matches. |
|
42 KImpsGeneralError = Imps_ERROR_BASE, |
|
43 // Terminal is already logged in SAP |
|
44 KImpsErrorAlreadyLogged = Imps_ERROR_BASE - 1, |
|
45 // Terminal has not yet logged in SAP |
|
46 KImpsErrorNotLogged = Imps_ERROR_BASE - 2, |
|
47 // Client not registered |
|
48 KImpsErrorNotRegistered = Imps_ERROR_BASE - 3, |
|
49 // Unauthorized request in SAP |
|
50 KImpsErrorUnauthorized = Imps_ERROR_BASE - 4, |
|
51 // General configuration error |
|
52 KImpsErrorConfig = Imps_ERROR_BASE - 5, |
|
53 // CSP Client Capabilities negotiation fails |
|
54 KImpsErrorCapabilities = Imps_ERROR_BASE - 6, |
|
55 // CSP Service negotiation fails |
|
56 KImpsErrorServices = Imps_ERROR_BASE - 7, |
|
57 // IAP connection closed or not found in CommDb |
|
58 KImpsErrorNoIAP = Imps_ERROR_BASE - 9, |
|
59 |
|
60 // message is too big to be sent - cannot allocate buffer |
|
61 KImpsErrorMessageTooBig = Imps_ERROR_BASE - 10, |
|
62 // message type invalid - cannot encode |
|
63 KImpsErrorUnknownMessageType = Imps_ERROR_BASE - 11, |
|
64 |
|
65 // This is not an actual error but a fake for online status changes |
|
66 KImpsNoIapStatus = Imps_ERROR_BASE - 12, |
|
67 KImpsOnlineStatus = Imps_ERROR_BASE - 13, |
|
68 KImpsOfflineStatus = Imps_ERROR_BASE - 14, |
|
69 KImpsNotLoggedStatus = Imps_ERROR_BASE - 15, |
|
70 |
|
71 // Logout not successful |
|
72 KImpsErrorOthersLogged = Imps_ERROR_BASE - 16, |
|
73 |
|
74 // Terminal off-line mode (flight mode) |
|
75 KImpsErrorTerminalOffLine = Imps_ERROR_BASE - 17, |
|
76 |
|
77 // Mapping of HTTP error codes. Rough categories only |
|
78 KImpsErrorHTTPConfiguration = Imps_ERROR_BASE - 18, // 1XX, 3XX |
|
79 KImpsErrorHTTPNotFound = Imps_ERROR_BASE - 19, // 4XX |
|
80 KImpsErrorHTTPServerDown = Imps_ERROR_BASE - 20, // 5XX |
|
81 |
|
82 // Errors from the transport adapter |
|
83 KImpsErrorSessionNotOpen = Imps_ERROR_BASE - 23, |
|
84 KImpsErrorBearerSuspended = Imps_ERROR_BASE - 24, |
|
85 KImpsErrorAlreadyClosed = Imps_ERROR_BASE - 25, |
|
86 KImpsErrorOffLine = Imps_ERROR_BASE - 26, |
|
87 KImpsErrorAllConnSlotsInUse = Imps_ERROR_BASE - 27, |
|
88 |
|
89 // Errors generated by illegal XML response |
|
90 KImpsErrorTID = Imps_ERROR_BASE - 40, |
|
91 KImpsErrorSID = Imps_ERROR_BASE - 41, |
|
92 KImpsErrorCID = Imps_ERROR_BASE - 42, |
|
93 KImpsErrorEncode = Imps_ERROR_BASE - 43, |
|
94 KImpsErrorDecode = Imps_ERROR_BASE - 44, |
|
95 KImpsErrorResponseStatus = Imps_ERROR_BASE - 45, |
|
96 KImpsErrorCSPVersion = Imps_ERROR_BASE - 46, |
|
97 KImpsErrorValidate = Imps_ERROR_BASE - 47, |
|
98 |
|
99 // Errors generated by illegal keys |
|
100 KImpsErrorKeyEmpty = Imps_ERROR_BASE - 50, |
|
101 KImpsErrorKeyIndexTooLarge = Imps_ERROR_BASE - 51, |
|
102 KImpsErrorKeyIndexInvalid = Imps_ERROR_BASE - 52, |
|
103 |
|
104 // New |
|
105 KImpsErrorShuttingDown = Imps_ERROR_BASE - 55, |
|
106 KImpsErrorAlreadyInUse = Imps_ERROR_BASE - 56 |
|
107 |
|
108 |
|
109 }; |
|
110 |
|
111 #endif // ImpsERRORS_H |
|
112 |