|
1 /* |
|
2 * Copyright (c) 2005 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: SyncML error codes |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __SYNCMLERR_H__ |
|
19 #define __SYNCMLERR_H__ |
|
20 |
|
21 #include <e32std.h> |
|
22 |
|
23 namespace SyncMLError |
|
24 /** SyncML-specific error codes. |
|
25 @publishedAll |
|
26 @released |
|
27 */ |
|
28 { |
|
29 /** Base value for transport-related errors. */ |
|
30 const TInt KErrTransportErrorBase = -8321; |
|
31 /** Error with the request. |
|
32 |
|
33 The transport cannot send data as created. */ |
|
34 const TInt KErrTransportRequest = KErrTransportErrorBase; |
|
35 /** Error in the provided headers. |
|
36 |
|
37 The transport has not been suitably configured. */ |
|
38 const TInt KErrTransportHeader = KErrTransportErrorBase - 1; |
|
39 /** The URI does not exist. */ |
|
40 const TInt KErrTransportSvrNoUri = KErrTransportErrorBase - 2; |
|
41 /** There was a transport server error. */ |
|
42 const TInt KErrTransportSvrError = KErrTransportErrorBase - 3; |
|
43 /** Transport Authentification failure. */ |
|
44 const TInt KErrTransportAuthenticationFailure = KErrTransportErrorBase - 4; |
|
45 /** Transport disconnected the session. */ |
|
46 const TInt KErrTransportDisconnected = KErrTransportErrorBase - 5; |
|
47 /** Base value for engine-related errors. */ |
|
48 const TInt KErrSyncEngineErrorBase = -8050; |
|
49 /** Transports could not connect to the server. */ |
|
50 const TInt KErrConnectionError = KErrSyncEngineErrorBase; |
|
51 /** Could not communicate with the server: possibly a time-out occurred. */ |
|
52 const TInt KErrCannotCommunicateWithServer = KErrSyncEngineErrorBase - 1; |
|
53 /** Database adapter failed to create an item. */ |
|
54 const TInt KErrDatabaseAdapterIndexError = KErrSyncEngineErrorBase - 2; |
|
55 /** Currently unused. */ |
|
56 const TInt KErrParseCallbackError = KErrSyncEngineErrorBase - 3; |
|
57 /** Currently unused. */ |
|
58 const TInt KErrCommandInvalid = KErrSyncEngineErrorBase - 4; |
|
59 /** Invalid session ID. */ |
|
60 const TInt KErrSessionIdNotValid = KErrSyncEngineErrorBase - 5; |
|
61 /** SyncML message did not specify a DTD version. */ |
|
62 const TInt KErrVerDTDMissing = KErrSyncEngineErrorBase - 6; |
|
63 /** SyncML message did not specify a protocol. */ |
|
64 const TInt KErrProtoMissing = KErrSyncEngineErrorBase - 7; |
|
65 /** Currently unused. */ |
|
66 const TInt KErrSyncHdrMissing = KErrSyncEngineErrorBase - 8; |
|
67 /** SyncML message did not specify a target location. */ |
|
68 const TInt KErrTargetLocMissing = KErrSyncEngineErrorBase - 9; |
|
69 /** SyncML message did not specify a source location. */ |
|
70 const TInt KErrSourceLocMissing = KErrSyncEngineErrorBase - 10; |
|
71 /** Currently unused. */ |
|
72 const TInt KErrTargetLocNameMissing = KErrSyncEngineErrorBase - 11; |
|
73 /** Currently unused. */ |
|
74 const TInt KErrSourceLocNameMissing = KErrSyncEngineErrorBase - 12; |
|
75 /** Mapping of added item could not created. */ |
|
76 const TInt KErrMappingInfoMissing = KErrSyncEngineErrorBase - 13; |
|
77 /** Mapping has not been acknowledged by the server. */ |
|
78 const TInt KErrMappingInfoNotAcked = KErrSyncEngineErrorBase - 14; |
|
79 /** SyncML message specified an unsupported DTD version. */ |
|
80 const TInt KErrVersionDTDNotSupported = KErrSyncEngineErrorBase - 15; |
|
81 /** SyncML message specified an unsupported protocol. */ |
|
82 const TInt KErrProtoNotSupported = KErrSyncEngineErrorBase - 16; |
|
83 /** A status was received for a cmdId, but this cmdId was not sent. */ |
|
84 const TInt KErrStatusCommandForCommandNotSent = KErrSyncEngineErrorBase - 17; |
|
85 /** A status was received but the command string does not matched the received one. */ |
|
86 const TInt KErrStatusCommandNotTheSame = KErrSyncEngineErrorBase - 18; |
|
87 /** Status command(s) were expected but are missing. */ |
|
88 const TInt KErrMissingStatusCommands = KErrSyncEngineErrorBase - 19; |
|
89 /** Failed to add record in database. */ |
|
90 const TInt KErrFailedToAddRecord = KErrSyncEngineErrorBase - 20; |
|
91 /** Failed to replace record in database. */ |
|
92 const TInt KErrFailedToReplaceRecord = KErrSyncEngineErrorBase - 21; |
|
93 /** Failed to delete record in database. */ |
|
94 const TInt KErrFailedToDeleteRecord = KErrSyncEngineErrorBase - 22; |
|
95 /** XML parsing error. */ |
|
96 const TInt KErrXmlParsingError = KErrSyncEngineErrorBase - 23; |
|
97 /** There was an error reported in the reference toolkit. */ |
|
98 const TInt KErrReferenceToolkitError = KErrSyncEngineErrorBase - 24; |
|
99 /** No suitable database was found on the client device. */ |
|
100 const TInt KErrClientDatabaseNotFound = KErrSyncEngineErrorBase - 83; |
|
101 /** No suitable database was found on the server. */ |
|
102 const TInt KErrServerDatabaseNotFound = KErrSyncEngineErrorBase - 84; |
|
103 /** Currently unused. */ |
|
104 const TInt KErrDevInfFileNotFound = KErrSyncEngineErrorBase - 85; |
|
105 /** Object is too large to send to server. */ |
|
106 const TInt KErrObjectTooLargeToSendToServer = KErrSyncEngineErrorBase - 86; |
|
107 /** Sync is going to be slow. */ |
|
108 const TInt KErrSlowSync = KErrSyncEngineErrorBase - 87; |
|
109 /** Failed to get record from DevMan. */ |
|
110 const TInt KErrFailedToGetRecord = KErrSyncEngineErrorBase - 88; |
|
111 /** User interaction failed. */ |
|
112 const TInt KErrUserInteractionFailed = KErrSyncEngineErrorBase - 89; |
|
113 /** Large object size mismatch. */ |
|
114 const TInt KErrStatusSizeMismatch = KErrSyncEngineErrorBase - 90; |
|
115 /** Data Provider close failed. */ |
|
116 const TInt KErrFailedToCloseDatabase = KErrSyncEngineErrorBase - 91; |
|
117 |
|
118 const TInt KErrPhoneOnOfflineMode = KErrSyncEngineErrorBase - 92; |
|
119 |
|
120 const TInt KErrAuthenticationFailure = KErrSyncEngineErrorBase - 93; |
|
121 |
|
122 const TInt KErrGeneral = KErrSyncEngineErrorBase - 94; |
|
123 |
|
124 /** Base value for push message parser-related errors. */ |
|
125 const TInt KErrPushMessageParserErrorBase = -8451; // 8451 - 8480 |
|
126 /** Push message is too short. */ |
|
127 const TInt KErrMessageTooShort = KErrPushMessageParserErrorBase; |
|
128 /** Push message is corrupt. */ |
|
129 const TInt KErrMessageIsCorrupt = KErrPushMessageParserErrorBase - 1; |
|
130 /** Profile has no Transport ID. */ |
|
131 const TInt KErrBadTransportId = KErrPushMessageParserErrorBase - 2; |
|
132 /** Push message has no body. */ |
|
133 const TInt KErrNoNotificationBody = KErrPushMessageParserErrorBase - 3; |
|
134 /** Push message specifies an unsupported version. */ |
|
135 const TInt KErrWrongVersion = KErrPushMessageParserErrorBase - 4; |
|
136 /** Push message specifies an unsupported version. */ |
|
137 const TInt KErrUnsupportedMimeType = KErrPushMessageParserErrorBase - 5; |
|
138 /** Currently unused. */ |
|
139 const TInt KErrNoSuchTask = KErrPushMessageParserErrorBase - 6; |
|
140 /** Push message specifies an unknown type of sync. */ |
|
141 const TInt KErrUnknownSyncType = KErrPushMessageParserErrorBase - 7; |
|
142 /** Push message specifies an unknown profile. */ |
|
143 const TInt KErrUnknownProfile = KErrPushMessageParserErrorBase - 8; |
|
144 /** Currently unused. */ |
|
145 const TInt KErrInvalidProfile = KErrPushMessageParserErrorBase - 9; |
|
146 /** Unsupported (USERNETWPIN or USERPIN) security mechanism specified. */ |
|
147 const TInt KErrInvalidCredentials = KErrPushMessageParserErrorBase - 10; |
|
148 /** Currently unused. */ |
|
149 const TInt KErrNoCredentials = KErrPushMessageParserErrorBase - 11; |
|
150 /** Failed to verify the generated HMAC value. */ |
|
151 const TInt KErrIntegrityFailureHMAC = KErrPushMessageParserErrorBase - 12; |
|
152 /** Currently unused. */ |
|
153 const TInt KErrMustUsageUriNotComplete = KErrPushMessageParserErrorBase - 13; |
|
154 /** Push message has invalid DM account URI. */ |
|
155 const TInt KErrDMAccUriIsCorrupt = KErrPushMessageParserErrorBase - 14; |
|
156 /** Push message has invalid DM connection URI. */ |
|
157 const TInt KErrDMConUriIsCorrupt = KErrPushMessageParserErrorBase - 15; |
|
158 /** Push message has missing characteristic. */ |
|
159 const TInt KErrParmNameNotInProvDoc = KErrPushMessageParserErrorBase - 17; |
|
160 /** Push message has missing or invalid App Id. */ |
|
161 const TInt KErrInvalidAppIdValue = KErrPushMessageParserErrorBase - 18; |
|
162 /** Push message has missing or invalid TO-NAPID. */ |
|
163 const TInt KErrInvalidToNapIdValue = KErrPushMessageParserErrorBase - 19; |
|
164 /** Push message has missing or invalid Provider-ID. */ |
|
165 const TInt KErrInvalidProviderIdValue = KErrPushMessageParserErrorBase - 20; |
|
166 /** Push message has missing or invalid AAUTHLEVEL. */ |
|
167 const TInt KErrEmptyAauthLevelValue = KErrPushMessageParserErrorBase - 21; |
|
168 /** Push message has missing or invalid APPSRV */ |
|
169 const TInt KErrAppSrvAAuthLevelNotFound = KErrPushMessageParserErrorBase - 22; |
|
170 /** Push message has missing or invalid AppAuth Client */ |
|
171 const TInt KErrClientAAuthLevelNotFound = KErrPushMessageParserErrorBase - 23; |
|
172 /** Currently unused. */ |
|
173 const TInt KErrInvalidAppAuth = KErrPushMessageParserErrorBase - 24; |
|
174 /** Push message has missing or invalid APPLICATION characteristic */ |
|
175 const TInt KErrNoApplicationCharac = KErrPushMessageParserErrorBase - 25; |
|
176 /** Push message has missing or invalid APPAUTH characteristic. */ |
|
177 const TInt KErrNoAppAuthCharac = KErrPushMessageParserErrorBase - 27; |
|
178 /** Currently unused. */ |
|
179 const TInt KErrMissingRequiredParmInSvr = KErrPushMessageParserErrorBase - 29; |
|
180 /** Currently unused. */ |
|
181 const TInt KErrMissingRequiredParmInClient = KErrPushMessageParserErrorBase - 30; |
|
182 /** Missing APPADDR characteristic or sub characteristic */ |
|
183 const TInt KErrAppAddrCharacNotFound = KErrPushMessageParserErrorBase - 33; |
|
184 /** Unsupported WBXML version */ |
|
185 const TInt KErrUnsupportedVersion = KErrPushMessageParserErrorBase - 34; |
|
186 /** Prov Document identifier not WAP Provisoning version 1.0 */ |
|
187 const TInt KErrWrongProvPublicDocId = KErrPushMessageParserErrorBase - 35; |
|
188 |
|
189 /** Base value for client API-related errors. */ |
|
190 const TInt KErrClientAPIBase = -8501; // -8501 -> -8700 |
|
191 /** The requested profile does not exist. */ |
|
192 const TInt KErrProfileNotFound = KErrClientAPIBase; |
|
193 /** The requested connection does not exist within the profile. */ |
|
194 const TInt KErrConnectionNotFound = KErrClientAPIBase - 1; |
|
195 /** The requested task does not exist within the profile. */ |
|
196 const TInt KErrTaskNotFound = KErrClientAPIBase - 2; |
|
197 /** The requested transport adaptor does not exist. */ |
|
198 const TInt KErrTransportNotFound = KErrClientAPIBase - 3; |
|
199 /** The requested data provider does not exist. */ |
|
200 const TInt KErrDataProviderNotFound = KErrClientAPIBase - 4; |
|
201 /** The requested job has completed. */ |
|
202 const TInt KErrJobNotFound = KErrClientAPIBase - 5; |
|
203 /** The requested object is pending deletion. */ |
|
204 const TInt KErrObjectPendingDelete = KErrClientAPIBase - 6; |
|
205 /** The object to modify or delete is currently in use. */ |
|
206 const TInt KErrObjectInUse = KErrClientAPIBase - 7; |
|
207 /** The specified profile is not available for edit, |
|
208 e.g. a Device Management profile, or open for edit by another client. */ |
|
209 const TInt KErrProfileAccessDenied = KErrClientAPIBase - 8; |
|
210 /** The requested data stream cannot be found in the Data Store. */ |
|
211 const TInt KErrSuspended = KErrClientAPIBase - 9; |
|
212 /** The requested data stream cannot be found in the Data Store. */ |
|
213 const TInt KErrDataDepotStreamNotFound = KErrClientAPIBase - 10; |
|
214 |
|
215 /** Server id from profile does not match with id from syncML server. */ |
|
216 const TInt KErrServerIdNotMatching = KErrClientAPIBase - 11; |
|
217 |
|
218 /** Server certificate is invalid or not in Store. */ |
|
219 const TInt KErrInvalidCert = -8702; |
|
220 |
|
221 } |
|
222 |
|
223 #endif // __SYNCMLERR_H__ |