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
Swift
case fail = 1
-
Denotes a file I/O error that occurred when trying to open a Realm.
Declaration
Objective-C
RLMErrorFileAccess = 2
Swift
case fileAccess = 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
Swift
case filePermissionDenied = 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
Swift
case fileExists = 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
Swift
case fileNotFound = 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
Swift
case fileFormatUpgradeRequired = 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
Swift
case incompatibleLockFile = 8
-
Denotes an error that occurs when there is insufficient available address space.
Declaration
Objective-C
RLMErrorAddressSpaceExhausted = 9
Swift
case addressSpaceExhausted = 9
-
Denotes an error that occurs if there is a schema version mismatch, so that a migration is required.
Declaration
Objective-C
RLMErrorSchemaMismatch = 10
Swift
case schemaMismatch = 10
-
Denotates an error where an operation was requested which cannot be performed on an open file.
Declaration
Objective-C
RLMErrorAlreadyOpen = 12
Swift
case alreadyOpen = 12
-
Denotates an error where an input value was invalid.
Declaration
Objective-C
RLMErrorInvalidInput = 13
Swift
case invalidInput = 13