PersistenceError.recordNotFound documentation

This commit is contained in:
Gwendal Roué committed 2019-02-25 20:21:20 +01:00
1 parent 63192e2b75
commit 31bdb2eeaa
1 file changed
+2 -2
+2 -2
View File
@@ -7510,8 +7510,8 @@ do {
```swift
do {
try player.update(db)
} catch PersistenceError.recordNotFound {
// There was nothing to update
} catch let PersistenceError.recordNotFound(databaseTableName: table, key: key) {
print("Key \(key) was not found in table \(table).")
}
```