RLMError
enum RLMError : NSInteger {}
Enum representing all recoverable errors in Realm.
-
Returned by RLMRealm if no other specific error is returned when a realm is opened.
Declaration
Objective‑C
RLMErrorFail = 1
-
Returned by RLMRealm for any I/O related exception scenarios when a realm is opened.
Declaration
Objective‑C
RLMErrorFileAccess = 2
-
Returned by RLMRealm if the user does not have permission to open or create the specified file in the specified access mode when the realm is opened.
Declaration
Objective‑C
RLMErrorFilePermissionDenied = 3
-
Returned by RLMRealm if the file already exists when a copy should be written.
Declaration
Objective‑C
RLMErrorFileExists = 4
-
Returned by RLMRealm if no file was found when a realm was opened as read-only or if the directory part of the specified path was not found when a copy should be written.
Declaration
Objective‑C
RLMErrorFileNotFound = 5
-
Returned by RLMRealm if a file format upgrade is required to open the file, but upgrades were explicilty disabled.
Declaration
Objective‑C
RLMErrorFileFormatUpgradeRequired = 6
-
Returned by RLMRealm if the database file is currently open in another process which cannot share with the current process due to an architecture mismatch.
Declaration
Objective‑C
RLMErrorIncompatibleLockFile = 8
-
Returned by RLMRealm if there is insufficient available address space.
Declaration
Objective‑C
RLMErrorAddressSpaceExhausted = 9