CoreStoreError
public enum CoreStoreError : Error, CustomNSError, Hashable
extension CoreStoreError: CustomDebugStringConvertible, CoreStoreDebugStringConvertible
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 specifiedNSURL
.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
-
Attempted to perform a fetch but could not find any related persistent store.
Declaration
Swift
case persistentStoreNotFound(entity: DynamicObject.Type)
-
Casts any
Error
to a knownCoreStoreError
, or wraps it inCoreStoreError.internalError(NSError:)
.Declaration
Swift
public init(_ error: Error?)
-
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 }