/* * SyncServices -- SyncServicesErrors.h * Copyright (c) 2006, Apple Computer, Inc. All rights reserved. */ #import #import // Predefined domain for errors from SyncServices APIs. SYNCSERVICES_EXPORT NSString *const ISyncErrorDomain NS_DEPRECATED_MAC(10_5, 10_7); enum { ISyncSessionClientAlreadySyncingError = 100, // a sync session was requested for a client already participating in a session ISyncSessionUserCanceledSessionError = 101, // the user canceled a sync via the data change alert ISyncSessionDriverRegistrationError = 200, // an ISyncSessionDriver was unable to register a client ISyncSessionDriverPullFailureError = 201, // an ISyncSessionDriver failed an -[ISyncSession prepareToPullChangesForEntityNames:beforeDate:] call ISyncSessionDriverFatalError = 300 // ISyncSessionDriver received a fatal error } NS_DEPRECATED_MAC(10_4, 10_7); typedef enum { ISyncServerDisabledReasonNone = 1000, // Returned when isEnabled has not been called or has returned YES. ISyncServerDisabledReasonByPreference, // Returned if syncing has been disabled with a preference ISyncServerDisabledReasonSharedNetworkHome,// Returned if another sync server is running against a network home directory. ISyncServerDisabledReasonUnresponsive, // Returned if isEnabled has timed out messaging to the Sync Server ISyncServerDisabledReasonUnknown, // Returned if the Sync Server fails to respond because of an unexpected error. } ISyncServerDisabledReason NS_DEPRECATED_MAC(10_4, 10_7); SYNCSERVICES_EXPORT NSString * const ISyncInvalidSchemaException NS_DEPRECATED_MAC(10_4, 10_7); // Raised when a client tries to register an invalid schema or schema extension. SYNCSERVICES_EXPORT NSString * const ISyncInvalidArgumentsException NS_DEPRECATED_MAC(10_4, 10_7); // Raised when the sync services API is passed bad or inconsistent arguments.