Why is RealmSwift obsessed with FatalError? #7747
Unanswered
Lightning-Lion
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Why is RealmSwift obsessed with FatalError?
Many operations in RealmSwift -- modifying objects outside of the working block, accessing objects on the wrong thread, trying to thaw non-realm-managed objects... Can lead to fatal errors.
Why doesn't RealmSwift provide a throw-able function to perform these operations instead of turning everything into a fatal error?
Many unsafe operations should have been caught by the do-catch block, and fatal errors would have caused the entire program to crash.
Beta Was this translation helpful? Give feedback.
All reactions