Enum RealmFileException.Kind
On this page
io.realm.exceptions
Enclosing class:
The specific kind of this RealmFileException .
Enum Constant Summary
Enum Constant and Description |
---|
Thrown for any I/O related exception scenarios when a Realm is opened. |
Thrown if the history type of the on-disk Realm is unexpected or incompatible. |
Thrown if the destination file exists but it is not supposed to. |
Thrown if the file needs to be upgraded to a new format, but upgrades have been explicitly disabled. |
Thrown if the database file is currently open in another process which cannot share with the current process due to an architecture mismatch. |
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.*. |
Thrown if the relevant file cannot be found. |
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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
public static RealmFileException.Kind | |
public static RealmFileException.Kind | values () |
Inherited Methods
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
Enum Constant Detail
ACCESS_ERROR
public static final RealmFileException.Kind
Thrown for any I/O related exception scenarios when a Realm is opened.
BAD_HISTORY
public static final RealmFileException.Kind
Thrown if the history type of the on-disk Realm is unexpected or incompatible.
EXISTS
public static final RealmFileException.Kind
Thrown if the destination file exists but it is not supposed to.
FORMAT_UPGRADE_REQUIRED
public static final RealmFileException.Kind
Thrown if the file needs to be upgraded to a new format, but upgrades have been explicitly disabled.
INCOMPATIBLE_LOCK_FILE
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.
INCOMPATIBLE_SYNC_FILE
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.
NOT_FOUND
public static final RealmFileException.Kind
Thrown if the relevant file cannot be found.
PERMISSION_DENIED
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.
Method Detail
valueOf
values
public static RealmFileException.Kind values () |
---|