RLMError
enum RLMError {}
RLMError
is an enumeration representing all recoverable errors. It is associated with the
Realm error domain specified in RLMErrorDomain
.
-
Denotes a general error that occurred when trying to open a Realm.
Declaration
Objective-C
RLMErrorFail = 1
-
Denotes a file I/O error that occurred when trying to open a Realm.
Declaration
Objective-C
RLMErrorFileAccess = 2
-
Denotes a file permission error that ocurred when trying to open a Realm.
This error can occur if the user does not have permission to open or create the specified file in the specified access mode when opening a Realm.
Declaration
Objective-C
RLMErrorFilePermissionDenied = 3
-
Denotes an error where a file was to be written to disk, but another file with the same name already exists.
Declaration
Objective-C
RLMErrorFileExists = 4
-
Denotes an error that occurs if a file could not be found.
This error may occur if a Realm file could not be found on disk when trying to open a Realm as read-only, or if the directory part of the specified path was not found when trying to write a copy.
Declaration
Objective-C
RLMErrorFileNotFound = 5
-
Denotes an error that occurs if a file format upgrade is required to open the file, but upgrades were explicitly disabled.
Declaration
Objective-C
RLMErrorFileFormatUpgradeRequired = 6
-
Denotes an error that occurs if the database file is currently open in another process which cannot share with the current process due to an architecture mismatch.
This error may occur if trying to share a Realm file between an i386 (32-bit) iOS Simulator and the Realm Browser application. In this case, please use the 64-bit version of the iOS Simulator.
Declaration
Objective-C
RLMErrorIncompatibleLockFile = 8
-
Denotes an error that occurs when there is insufficient available address space.
Declaration
Objective-C
RLMErrorAddressSpaceExhausted = 9
-
Denotes an error that occurs if there is a schema version mismatch, so that a migration is required.
Declaration
Objective-C
RLMErrorSchemaMismatch = 10
-
Denotes an error that occurs when attempting to open an incompatible synchronized Realm file.
This error occurs when the Realm file was created with an older version of Realm and an automatic migration to the current version is not possible. When such an error occurs, the original file is moved to a backup location, and future attempts to open the synchronized Realm will result in a new file being created. If you wish to migrate any data from the backup Realm, you can open it using the provided Realm configuration.
Declaration
Objective-C
RLMErrorIncompatibleSyncedFile = 11
-
Denotates an error where an operation was requested which cannot be performed on an open file.
Declaration
Objective-C
RLMErrorAlreadyOpen = 12