Code
public enum Code: Int
Struct that describes the error codes within the Realm error domain. The values can be used to catch a variety of recoverable errors, especially those happening when initializing a Realm instance.
let realm: Realm?
do {
realm = Realm()
} catch RealmSwift.Error.incompatibleLockFile {
print("Realm Browser app may be attached to Realm on device?")
}
-
See
Error.fail
Declaration
Swift
case fail
-
See
Error.fileAccess
Declaration
Swift
case fileAccess
-
Declaration
Swift
case filePermissionDenied
-
See
Error.fileExists
Declaration
Swift
case fileExists
-
Declaration
Swift
case fileNotFound
-
Declaration
Swift
case incompatibleLockFile
-
Declaration
Swift
case fileFormatUpgradeRequired
-
Declaration
Swift
case addressSpaceExhausted
-
Declaration
Swift
case schemaMismatch