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

    Swift

    case Fail
  • Returned by RLMRealm for any I/O related exception scenarios when a realm is opened.

    Declaration

    Objective‑C

    RLMErrorFileAccess = 2

    Swift

    case FileAccess
  • 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

    Swift

    case FilePermissionDenied
  • Returned by RLMRealm if the file already exists when a copy should be written.

    Declaration

    Objective‑C

    RLMErrorFileExists = 4

    Swift

    case FileExists
  • 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

    Swift

    case FileNotFound
  • Returned by RLMRealm if a file format upgrade is required to open the file, but upgrades were explicitly disabled.

    Declaration

    Objective‑C

    RLMErrorFileFormatUpgradeRequired = 6

    Swift

    case FileFormatUpgradeRequired
  • 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

    Swift

    case IncompatibleLockFile
  • Returned by RLMRealm if there is insufficient available address space.

    Declaration

    Objective‑C

    RLMErrorAddressSpaceExhausted = 9

    Swift

    case AddressSpaceExhausted
  • Returned by RLMRealm if there is a schema version mismatch, so that a migration is required.

    Declaration

    Objective‑C

    RLMErrorSchemaMismatch = 10

    Swift

    case SchemaMismatch