@@ -21,15 +21,15 @@ public enum CoreDataError: Error, Hashable, Sendable {
2121 /// against the correct property.
2222 /// If the `NSAttributeDescription` is not for the correct or expected `NSEntityDescription`, this error is
2323 /// returned.
24- case propertyDoesNotMatchEntity
24+ case propertyDoesNotMatchEntity( description : String ? )
2525
2626 /// CoreData may return a value of a related type to what is actually needed. If casting the value CoreData returns
2727 /// to the required type fails, this error is returned.
28- case fetchedObjectFailedToCastToExpectedType
28+ case fetchedObjectFailedToCastToExpectedType( description : String ? )
2929
3030 /// It's possible for a persisted object to be flagged as deleted but still be fetched. If that happens, this error
3131 /// is returned.
32- case fetchedObjectIsFlaggedAsDeleted
32+ case fetchedObjectIsFlaggedAsDeleted( description : String )
3333
3434 /// If CoreData throws a `CocoaError`, it is embedded here.
3535 case cocoa( CocoaError )
@@ -48,13 +48,13 @@ public enum CoreDataError: Error, Hashable, Sendable {
4848 /// If a ``ManagedIdUrlReferencable`` value is used in a transaction where it is expected to already be persisted
4949 /// but has no `URL`
5050 /// representing the ``NSManagedObjectID``, this error is returned.
51- case noUrlOnItemToMapToObjectId
51+ case noUrlOnItemToMapToObjectId( description : String )
5252
5353 /// If a ``ManagedIdReferencable`` value is used in a transaction where it is expected to already be persisted but
5454 /// has no `NSManagedObjectID`, this error is returned.
55- case noObjectIdOnItem
55+ case noObjectIdOnItem( description : String )
5656
57- case noMatchFoundWhenReadingItem
57+ case noMatchFoundWhenReadingItem( description : String )
5858
5959 public var localizedDescription : String {
6060 switch self {
0 commit comments