Mac Developer Library

Developer

Accounts Constants Reference

Options
Deployment Target:

On This Page
Language:

Accounts Constants Reference

Constants

  • Error domain for the Accounts framework.

    Declaration

    Swift

    let ACErrorDomain: NSString!

    Objective-C

    NSString * const ACErrorDomain;

    Constants

    • ACErrorDomain

      ACErrorDomain

      Error domain for the Accounts framework.

      Available in OS X v10.8 and later.

    Import Statement

  • Codes for errors that may occur.

    Declaration

    Swift

    struct ACErrorCode { init(_ value: UInt32) var value: UInt32 }

    Objective-C

    typedef enum ACErrorCode { ACErrorUnknown = 1, ACErrorAccountMissingRequiredProperty, ACErrorAccountAuthenticationFailed, ACErrorAccountTypeInvalid, ACErrorAccountAlreadyExists, ACErrorAccountNotFound, ACErrorPermissionDenied, ACErrorAccessInfoInvalid, ACErrorClientPermissionDenied ACErrorAccessDeniedByProtectionPolicy ACErrorCredentialNotFound ACErrorFetchCredentialFailed, ACErrorStoreCredentialFailed, ACErrorRemoveCredentialFailed, ACErrorUpdatingNonexistentAccount ACErrorInvalidClientBundleID, } ACErrorCode;

    Constants

    • ACErrorUnknown

      ACErrorUnknown

      An unknown error occurred.

      Available in OS X v10.8 and later.

    • ACErrorAccountMissingRequiredProperty

      ACErrorAccountMissingRequiredProperty

      An account was not saved because a required property is missing.

      Available in OS X v10.8 and later.

    • ACErrorAccountAuthenticationFailed

      ACErrorAccountAuthenticationFailed

      An account was not saved because authentication of its credential failed.

      Available in OS X v10.8 and later.

    • ACErrorAccountTypeInvalid

      ACErrorAccountTypeInvalid

      An account was not saved because its account type is invalid.

      Available in OS X v10.8 and later.

    • ACErrorAccountAlreadyExists

      ACErrorAccountAlreadyExists

      An account was not added because it already exists.

      Available in OS X v10.8 and later.

    • ACErrorAccountNotFound

      ACErrorAccountNotFound

      An account was not deleted because it could not be found.

      Available in OS X v10.8 and later.

    • ACErrorPermissionDenied

      ACErrorPermissionDenied

      The operation failed because the application does not have permission to perform the operation.

      Available in OS X v10.8 and later.

    • ACErrorAccessInfoInvalid

      ACErrorAccessInfoInvalid

      The client's access info dictionary has incorrect or missing values.

      Available in OS X v10.8 and later.

    • ACErrorClientPermissionDenied

      ACErrorClientPermissionDenied

      The client does not have access to the requested data.

      Available in OS X v10.9 and later.

    • ACErrorAccessDeniedByProtectionPolicy

      ACErrorAccessDeniedByProtectionPolicy

      Due to the current protection policy, the credentials could not be fetched.

      Available in OS X v10.9 and later.

    • ACErrorCredentialNotFound

      ACErrorCredentialNotFound

      No credentials were found.

      Available in OS X v10.9 and later.

    • ACErrorFetchCredentialFailed

      ACErrorFetchCredentialFailed

      The credentials could not be fetched from Keychain.

      Available in OS X v10.9 and later.

    • ACErrorStoreCredentialFailed

      ACErrorStoreCredentialFailed

      The credentials could not be stored in Keychain.

      Available in OS X v10.9 and later.

    • ACErrorRemoveCredentialFailed

      ACErrorRemoveCredentialFailed

      The credentials could not be removed from Keychain.

      Available in OS X v10.9 and later.

    • ACErrorUpdatingNonexistentAccount

      ACErrorUpdatingNonexistentAccount

      Account save failed because the account being updated has been removed.

      Available in OS X v10.9 and later.

    • ACErrorInvalidClientBundleID

      ACErrorInvalidClientBundleID

      The client making the request does not have a valid bundle ID.

      Available in OS X v10.9 and later.

    Import Statement

    import Accounts

    Availability

    Available in OS X v10.8 and later.