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
RLMErrorFileAccessError = 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 no_create was specified and the file did already exist when the realm is opened.
Declaration
Objective‑C
RLMErrorFileExists = 4
-
Returned by RLMRealm if no_create was specified and the file was not found when the realm is opened.
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