Because write transactions could potentially fail like any other disk IO operations, bothRealm.write()
&Realm.commitWrite()
are marked asthrows
so you can handle and recover from failures like running out of disk space. There are no other recoverable errors.
--
You received this message because you are subscribed to the Google Groups "Realm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to realm-cocoa...@googlegroups.com.
To post to this group, send email to realm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/realm-cocoa/e873fc5f-99e5-4dba-bdbe-dd69a509b1bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.