MigrationError
public enum MigrationError : Error
An error type that specifies possible errors that are thrown by calling CoreDataModel.migrate() throws.
-
Specifies that the
NSManagedObjectModelcorresponding to the existing persistent store was not found in the model’s bundle.Declaration
Swift
case sourceModelNotFound(model: CoreDataModel)Parameters
modelThe model that failed to be migrated.
-
Specifies that an
NSMappingModelwas not found in the model’s bundle in the progressive migration ‘path’.Declaration
Swift
case mappingModelNotFound(destinationModel: NSManagedObjectModel)Parameters
sourceModelThe destination managed object model for which a mapping model was not found.
View on GitHub
MigrationError Enumeration Reference