Adds LoggedError Core Data entity

Allows us to save certain errors to disk so that they can be viewed again later from an error log.
This commit is contained in:
Riley Testut
2022-09-08 16:14:28 -05:00
parent c232ef5044
commit 00439fe292
5 changed files with 148 additions and 15 deletions

View File

@@ -59,6 +59,8 @@ public class StoreApp: NSManagedObject, Decodable, Fetchable
@NSManaged @objc(source) public var _source: Source?
@NSManaged @objc(permissions) public var _permissions: NSOrderedSet
@NSManaged public private(set) var loggedErrors: NSSet /* Set<LoggedError> */ // Use NSSet to avoid eagerly fetching values.
@nonobjc public var source: Source? {
set {
self._source = newValue