Docs Menu

Enum RealmFileException.Kind

On this page

java.lang.Object
io.realm.exceptions.RealmFileException.Kind

Enclosing class:

RealmFileException

The specific kind of this RealmFileException .

Enum Constant and Description

ACCESS_ERROR

Thrown for any I/O related exception scenarios when a Realm is opened.

BAD_HISTORY

Thrown if the history type of the on-disk Realm is unexpected or incompatible.

EXISTS

Thrown if the destination file exists but it is not supposed to.

FORMAT_UPGRADE_REQUIRED

Thrown if the file needs to be upgraded to a new format, but upgrades have been explicitly disabled.

INCOMPATIBLE_LOCK_FILE

Thrown if the database file is currently open in another process which cannot share with the current process due to an architecture mismatch.

INCOMPATIBLE_SYNC_FILE

Thrown if an attempt was made to open an Realm file created with Realm Object Server 1.*, which is not compatible with Realm Object Server 2.*.

NOT_FOUND

Thrown if the relevant file cannot be found.

PERMISSION_DENIED

Thrown if the user does not have permission to open or create the specified file in the specified access mode when the Realm is opened.

Modifier and Type
Method and Description
  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize
  • Methods inherited from class java.lang.Enum : name , ordinal , toString , equals , hashCode , clone , compareTo , getDeclaringClass , valueOf , finalize

public static final RealmFileException.Kind

Thrown for any I/O related exception scenarios when a Realm is opened.

public static final RealmFileException.Kind

Thrown if the history type of the on-disk Realm is unexpected or incompatible.

public static final RealmFileException.Kind

Thrown if the destination file exists but it is not supposed to.

public static final RealmFileException.Kind

Thrown if the file needs to be upgraded to a new format, but upgrades have been explicitly disabled.

public static final RealmFileException.Kind

Thrown if the database file is currently open in another process which cannot share with the current process due to an architecture mismatch.

public static final RealmFileException.Kind

Thrown if an attempt was made to open an Realm file created with Realm Object Server 1.*, which is not compatible with Realm Object Server 2.*. This exception should automatically be handled by Realm.

public static final RealmFileException.Kind

Thrown if the relevant file cannot be found.

public static final RealmFileException.Kind

Thrown if the user does not have permission to open or create the specified file in the specified access mode when the Realm is opened.

←  io.realm.exceptionsException DownloadingRealmInterruptedException →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.