README.md: RecordError has been renamed PersistenceError.

This commit is contained in:
Gwendal Roué committed 2015-12-10 22:20:08 +01:00
1 parent 7782bcddac
commit 7fc282a2d5
1 file changed
+1 -1
+1 -1
View File
@@ -1894,7 +1894,7 @@ try dbQueue.inDatabase { db in
- `insert`, `update`, `save` and `delete` can throw a [DatabaseError](#error-handling) whenever an SQLite integrity check fails.
- `update` and `reload` methods can also throw a RecordError of type RecordNotFound, should the update or reload fail because the record does not exist in the database.
- `update` and `reload` methods can also throw a PersistenceError of type NotFound, should the update or reload fail because the record does not exist in the database.
When saving a record that may or may not already exist in the database, prefer the `save` method: it performs the UPDATE or INSERT statement that makes sure your values are saved in the database.