// // ACError.h // Accounts // // Copyright (c) 2011-2012 Apple Inc. All rights reserved. // #import ACCOUNTS_EXTERN NSString * const ACErrorDomain NS_AVAILABLE(10_8, 5_0); typedef enum ACErrorCode { ACErrorUnknown = 1, ACErrorAccountMissingRequiredProperty, // Account wasn't saved because it is missing a required property. ACErrorAccountAuthenticationFailed, // Account wasn't saved because authentication of the supplied credential failed. ACErrorAccountTypeInvalid, // Account wasn't saved because the account type is invalid. ACErrorAccountAlreadyExists, // Account wasn't added because it already exists. ACErrorAccountNotFound, // Account wasn't deleted because it could not be found. ACErrorPermissionDenied, // The operation didn't complete because the user denied permission. ACErrorAccessInfoInvalid // The client's access info dictionary has incorrect or missing values. } ACErrorCode;