williamr@2: /* williamr@2: * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * 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@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: SyncML error codes williamr@2: * williamr@2: */ williamr@2: williamr@2: #ifndef __SYNCMLERR_H__ williamr@2: #define __SYNCMLERR_H__ williamr@2: williamr@2: #include williamr@2: williamr@2: namespace SyncMLError williamr@2: /** SyncML-specific error codes. williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: { williamr@2: /** Base value for transport-related errors. */ williamr@2: const TInt KErrTransportErrorBase = -8321; williamr@2: /** Error with the request. williamr@2: williamr@2: The transport cannot send data as created. */ williamr@2: const TInt KErrTransportRequest = KErrTransportErrorBase; williamr@2: /** Error in the provided headers. williamr@2: williamr@2: The transport has not been suitably configured. */ williamr@2: const TInt KErrTransportHeader = KErrTransportErrorBase - 1; williamr@2: /** The URI does not exist. */ williamr@2: const TInt KErrTransportSvrNoUri = KErrTransportErrorBase - 2; williamr@2: /** There was a transport server error. */ williamr@2: const TInt KErrTransportSvrError = KErrTransportErrorBase - 3; williamr@2: /** Transport Authentification failure. */ williamr@2: const TInt KErrTransportAuthenticationFailure = KErrTransportErrorBase - 4; williamr@2: /** Transport disconnected the session. */ williamr@2: const TInt KErrTransportDisconnected = KErrTransportErrorBase - 5; williamr@2: /** Base value for engine-related errors. */ williamr@2: const TInt KErrSyncEngineErrorBase = -8050; williamr@2: /** Transports could not connect to the server. */ williamr@2: const TInt KErrConnectionError = KErrSyncEngineErrorBase; williamr@2: /** Could not communicate with the server: possibly a time-out occurred. */ williamr@2: const TInt KErrCannotCommunicateWithServer = KErrSyncEngineErrorBase - 1; williamr@2: /** Database adapter failed to create an item. */ williamr@2: const TInt KErrDatabaseAdapterIndexError = KErrSyncEngineErrorBase - 2; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrParseCallbackError = KErrSyncEngineErrorBase - 3; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrCommandInvalid = KErrSyncEngineErrorBase - 4; williamr@2: /** Invalid session ID. */ williamr@2: const TInt KErrSessionIdNotValid = KErrSyncEngineErrorBase - 5; williamr@2: /** SyncML message did not specify a DTD version. */ williamr@2: const TInt KErrVerDTDMissing = KErrSyncEngineErrorBase - 6; williamr@2: /** SyncML message did not specify a protocol. */ williamr@2: const TInt KErrProtoMissing = KErrSyncEngineErrorBase - 7; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrSyncHdrMissing = KErrSyncEngineErrorBase - 8; williamr@2: /** SyncML message did not specify a target location. */ williamr@2: const TInt KErrTargetLocMissing = KErrSyncEngineErrorBase - 9; williamr@2: /** SyncML message did not specify a source location. */ williamr@2: const TInt KErrSourceLocMissing = KErrSyncEngineErrorBase - 10; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrTargetLocNameMissing = KErrSyncEngineErrorBase - 11; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrSourceLocNameMissing = KErrSyncEngineErrorBase - 12; williamr@2: /** Mapping of added item could not created. */ williamr@2: const TInt KErrMappingInfoMissing = KErrSyncEngineErrorBase - 13; williamr@2: /** Mapping has not been acknowledged by the server. */ williamr@2: const TInt KErrMappingInfoNotAcked = KErrSyncEngineErrorBase - 14; williamr@2: /** SyncML message specified an unsupported DTD version. */ williamr@2: const TInt KErrVersionDTDNotSupported = KErrSyncEngineErrorBase - 15; williamr@2: /** SyncML message specified an unsupported protocol. */ williamr@2: const TInt KErrProtoNotSupported = KErrSyncEngineErrorBase - 16; williamr@2: /** A status was received for a cmdId, but this cmdId was not sent. */ williamr@2: const TInt KErrStatusCommandForCommandNotSent = KErrSyncEngineErrorBase - 17; williamr@2: /** A status was received but the command string does not matched the received one. */ williamr@2: const TInt KErrStatusCommandNotTheSame = KErrSyncEngineErrorBase - 18; williamr@2: /** Status command(s) were expected but are missing. */ williamr@2: const TInt KErrMissingStatusCommands = KErrSyncEngineErrorBase - 19; williamr@2: /** Failed to add record in database. */ williamr@2: const TInt KErrFailedToAddRecord = KErrSyncEngineErrorBase - 20; williamr@2: /** Failed to replace record in database. */ williamr@2: const TInt KErrFailedToReplaceRecord = KErrSyncEngineErrorBase - 21; williamr@2: /** Failed to delete record in database. */ williamr@2: const TInt KErrFailedToDeleteRecord = KErrSyncEngineErrorBase - 22; williamr@2: /** XML parsing error. */ williamr@2: const TInt KErrXmlParsingError = KErrSyncEngineErrorBase - 23; williamr@2: /** There was an error reported in the reference toolkit. */ williamr@2: const TInt KErrReferenceToolkitError = KErrSyncEngineErrorBase - 24; williamr@2: /** No suitable database was found on the client device. */ williamr@2: const TInt KErrClientDatabaseNotFound = KErrSyncEngineErrorBase - 83; williamr@2: /** No suitable database was found on the server. */ williamr@2: const TInt KErrServerDatabaseNotFound = KErrSyncEngineErrorBase - 84; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrDevInfFileNotFound = KErrSyncEngineErrorBase - 85; williamr@2: /** Object is too large to send to server. */ williamr@2: const TInt KErrObjectTooLargeToSendToServer = KErrSyncEngineErrorBase - 86; williamr@2: /** Sync is going to be slow. */ williamr@2: const TInt KErrSlowSync = KErrSyncEngineErrorBase - 87; williamr@2: /** Failed to get record from DevMan. */ williamr@2: const TInt KErrFailedToGetRecord = KErrSyncEngineErrorBase - 88; williamr@2: /** User interaction failed. */ williamr@2: const TInt KErrUserInteractionFailed = KErrSyncEngineErrorBase - 89; williamr@2: /** Large object size mismatch. */ williamr@2: const TInt KErrStatusSizeMismatch = KErrSyncEngineErrorBase - 90; williamr@2: /** Data Provider close failed. */ williamr@2: const TInt KErrFailedToCloseDatabase = KErrSyncEngineErrorBase - 91; williamr@2: williamr@2: const TInt KErrPhoneOnOfflineMode = KErrSyncEngineErrorBase - 92; williamr@2: williamr@2: const TInt KErrAuthenticationFailure = KErrSyncEngineErrorBase - 93; williamr@2: williamr@2: const TInt KErrGeneral = KErrSyncEngineErrorBase - 94; williamr@2: williamr@2: /** Base value for push message parser-related errors. */ williamr@2: const TInt KErrPushMessageParserErrorBase = -8451; // 8451 - 8480 williamr@2: /** Push message is too short. */ williamr@2: const TInt KErrMessageTooShort = KErrPushMessageParserErrorBase; williamr@2: /** Push message is corrupt. */ williamr@2: const TInt KErrMessageIsCorrupt = KErrPushMessageParserErrorBase - 1; williamr@2: /** Profile has no Transport ID. */ williamr@2: const TInt KErrBadTransportId = KErrPushMessageParserErrorBase - 2; williamr@2: /** Push message has no body. */ williamr@2: const TInt KErrNoNotificationBody = KErrPushMessageParserErrorBase - 3; williamr@2: /** Push message specifies an unsupported version. */ williamr@2: const TInt KErrWrongVersion = KErrPushMessageParserErrorBase - 4; williamr@2: /** Push message specifies an unsupported version. */ williamr@2: const TInt KErrUnsupportedMimeType = KErrPushMessageParserErrorBase - 5; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrNoSuchTask = KErrPushMessageParserErrorBase - 6; williamr@2: /** Push message specifies an unknown type of sync. */ williamr@2: const TInt KErrUnknownSyncType = KErrPushMessageParserErrorBase - 7; williamr@2: /** Push message specifies an unknown profile. */ williamr@2: const TInt KErrUnknownProfile = KErrPushMessageParserErrorBase - 8; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrInvalidProfile = KErrPushMessageParserErrorBase - 9; williamr@2: /** Unsupported (USERNETWPIN or USERPIN) security mechanism specified. */ williamr@2: const TInt KErrInvalidCredentials = KErrPushMessageParserErrorBase - 10; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrNoCredentials = KErrPushMessageParserErrorBase - 11; williamr@2: /** Failed to verify the generated HMAC value. */ williamr@2: const TInt KErrIntegrityFailureHMAC = KErrPushMessageParserErrorBase - 12; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrMustUsageUriNotComplete = KErrPushMessageParserErrorBase - 13; williamr@2: /** Push message has invalid DM account URI. */ williamr@2: const TInt KErrDMAccUriIsCorrupt = KErrPushMessageParserErrorBase - 14; williamr@2: /** Push message has invalid DM connection URI. */ williamr@2: const TInt KErrDMConUriIsCorrupt = KErrPushMessageParserErrorBase - 15; williamr@2: /** Push message has missing characteristic. */ williamr@2: const TInt KErrParmNameNotInProvDoc = KErrPushMessageParserErrorBase - 17; williamr@2: /** Push message has missing or invalid App Id. */ williamr@2: const TInt KErrInvalidAppIdValue = KErrPushMessageParserErrorBase - 18; williamr@2: /** Push message has missing or invalid TO-NAPID. */ williamr@2: const TInt KErrInvalidToNapIdValue = KErrPushMessageParserErrorBase - 19; williamr@2: /** Push message has missing or invalid Provider-ID. */ williamr@2: const TInt KErrInvalidProviderIdValue = KErrPushMessageParserErrorBase - 20; williamr@2: /** Push message has missing or invalid AAUTHLEVEL. */ williamr@2: const TInt KErrEmptyAauthLevelValue = KErrPushMessageParserErrorBase - 21; williamr@2: /** Push message has missing or invalid APPSRV */ williamr@2: const TInt KErrAppSrvAAuthLevelNotFound = KErrPushMessageParserErrorBase - 22; williamr@2: /** Push message has missing or invalid AppAuth Client */ williamr@2: const TInt KErrClientAAuthLevelNotFound = KErrPushMessageParserErrorBase - 23; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrInvalidAppAuth = KErrPushMessageParserErrorBase - 24; williamr@2: /** Push message has missing or invalid APPLICATION characteristic */ williamr@2: const TInt KErrNoApplicationCharac = KErrPushMessageParserErrorBase - 25; williamr@2: /** Push message has missing or invalid APPAUTH characteristic. */ williamr@2: const TInt KErrNoAppAuthCharac = KErrPushMessageParserErrorBase - 27; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrMissingRequiredParmInSvr = KErrPushMessageParserErrorBase - 29; williamr@2: /** Currently unused. */ williamr@2: const TInt KErrMissingRequiredParmInClient = KErrPushMessageParserErrorBase - 30; williamr@2: /** Missing APPADDR characteristic or sub characteristic */ williamr@2: const TInt KErrAppAddrCharacNotFound = KErrPushMessageParserErrorBase - 33; williamr@2: /** Unsupported WBXML version */ williamr@2: const TInt KErrUnsupportedVersion = KErrPushMessageParserErrorBase - 34; williamr@2: /** Prov Document identifier not WAP Provisoning version 1.0 */ williamr@2: const TInt KErrWrongProvPublicDocId = KErrPushMessageParserErrorBase - 35; williamr@2: williamr@2: /** Base value for client API-related errors. */ williamr@2: const TInt KErrClientAPIBase = -8501; // -8501 -> -8700 williamr@2: /** The requested profile does not exist. */ williamr@2: const TInt KErrProfileNotFound = KErrClientAPIBase; williamr@2: /** The requested connection does not exist within the profile. */ williamr@2: const TInt KErrConnectionNotFound = KErrClientAPIBase - 1; williamr@2: /** The requested task does not exist within the profile. */ williamr@2: const TInt KErrTaskNotFound = KErrClientAPIBase - 2; williamr@2: /** The requested transport adaptor does not exist. */ williamr@2: const TInt KErrTransportNotFound = KErrClientAPIBase - 3; williamr@2: /** The requested data provider does not exist. */ williamr@2: const TInt KErrDataProviderNotFound = KErrClientAPIBase - 4; williamr@2: /** The requested job has completed. */ williamr@2: const TInt KErrJobNotFound = KErrClientAPIBase - 5; williamr@2: /** The requested object is pending deletion. */ williamr@2: const TInt KErrObjectPendingDelete = KErrClientAPIBase - 6; williamr@2: /** The object to modify or delete is currently in use. */ williamr@2: const TInt KErrObjectInUse = KErrClientAPIBase - 7; williamr@2: /** The specified profile is not available for edit, williamr@2: e.g. a Device Management profile, or open for edit by another client. */ williamr@2: const TInt KErrProfileAccessDenied = KErrClientAPIBase - 8; williamr@2: /** The requested data stream cannot be found in the Data Store. */ williamr@2: const TInt KErrSuspended = KErrClientAPIBase - 9; williamr@2: /** The requested data stream cannot be found in the Data Store. */ williamr@2: const TInt KErrDataDepotStreamNotFound = KErrClientAPIBase - 10; williamr@2: williamr@2: /** Server id from profile does not match with id from syncML server. */ williamr@2: const TInt KErrServerIdNotMatching = KErrClientAPIBase - 11; williamr@2: williamr@2: /** Server certificate is invalid or not in Store. */ williamr@2: const TInt KErrInvalidCert = -8702; williamr@2: williamr@2: } williamr@2: williamr@2: #endif // __SYNCMLERR_H__