CoreStoreError

public enum CoreStoreError : Error, CustomNSError, Hashable

All errors thrown from CoreStore are expressed in CoreStoreError enum values.

  • A failure occured because of an unknown error.

    Declaration

    Swift

    case unknown
  • The NSPersistentStore could not be initialized because another store existed at the specified NSURL.

    Declaration

    Swift

    case differentStorageExistsAtURL(existingPersistentStoreURL: URL)
  • An NSMappingModel could not be found for a specific source and destination model versions.

    Declaration

    Swift

    case mappingModelNotFound(localStoreURL: URL, targetModel: NSManagedObjectModel, targetModelVersion: String)
  • Progressive migrations are disabled for a store, but an NSMappingModel could not be found for a specific source and destination model versions.

    Declaration

    Swift

    case progressiveMigrationRequired(localStoreURL: URL)
  • The LocalStorage was configured with .allowSynchronousLightweightMigration, but the model can only be migrated asynchronously.

    Declaration

    Swift

    case asynchronousMigrationRequired(localStoreURL: URL, NSError: NSError)
  • An internal SDK call failed with the specified NSError.

    Declaration

    Swift

    case internalError(NSError: NSError)
  • The transaction was terminated by a user-thrown Error.

    Declaration

    Swift

    case userError(error: Error)
  • The transaction was cancelled by the user.

    Declaration

    Swift

    case userCancelled
  • Declaration

    Swift

    public static var errorDomain: String { get }
  • Declaration

    Swift

    public var errorCode: Int { get }
  • Declaration

    Swift

    public var errorUserInfo: [String : Any] { get }
  • Declaration

    Swift

    public static func == (lhs: CoreStoreError, rhs: CoreStoreError) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)
  • Declaration

    Swift

    public var debugDescription: String { get }