We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47de46c commit 8b202e9Copy full SHA for 8b202e9
1 file changed
Sources/CoreDataRepository/FetchableUnmanagedModel.swift
@@ -70,6 +70,9 @@ public protocol FetchableUnmanagedModel: Sendable {
70
71
/// A description of the context from where an error is thrown
72
var errorDescription: String { get }
73
+
74
+ /// A description of the context from where an error is thrown but there is no instance `self` to use
75
+ static var errorDescription: String { get }
76
}
77
78
extension FetchableUnmanagedModel {
@@ -85,4 +88,9 @@ extension FetchableUnmanagedModel {
85
88
public var errorDescription: String {
86
89
"\(Self.self)"
87
90
91
92
+ @inlinable
93
+ public static var errorDescription: String {
94
+ "\(Self.self)"
95
+ }
96
0 commit comments