MigrationError

public enum MigrationError : Error

An error type that specifies possible errors that are thrown by calling CoreDataModel.migrate() throws.

  • Specifies that the NSManagedObjectModel corresponding to the existing persistent store was not found in the model’s bundle.

    Declaration

    Swift

    case sourceModelNotFound(model: CoreDataModel)

    Parameters

    model

    The model that failed to be migrated.

  • Specifies that an NSMappingModel was not found in the model’s bundle in the progressive migration ‘path’.

    Declaration

    Swift

    case mappingModelNotFound(destinationModel: NSManagedObjectModel)

    Parameters

    sourceModel

    The destination managed object model for which a mapping model was not found.