public static enum RealmFileException.Kind extends Enum<RealmFileException.Kind>
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.
|
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 |
---|---|
static RealmFileException.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RealmFileException.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RealmFileException.Kind ACCESS_ERROR
public static final RealmFileException.Kind BAD_HISTORY
public static final RealmFileException.Kind PERMISSION_DENIED
public static final RealmFileException.Kind EXISTS
public static final RealmFileException.Kind NOT_FOUND
public static final RealmFileException.Kind INCOMPATIBLE_LOCK_FILE
public static final RealmFileException.Kind FORMAT_UPGRADE_REQUIRED
public static RealmFileException.Kind[] values()
for (RealmFileException.Kind c : RealmFileException.Kind.values()) System.out.println(c);
public static RealmFileException.Kind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null