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. |
Se lanza si el tipo de historial del Realm en disco es inesperado o incompatible. |
Se lanza si el archivo de destino existe pero no debería existir. |
Thrown if the file needs to be upgraded to a new format, but upgrades have been explicitly disabled. |
ARCHIVO DE BLOQUEO INCOMPATIBLE 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.*. |
Se arroja si no se puede encontrar el archivo correspondiente. |
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. |
Resumen del método
Modificador y Tipo | Método y descripción |
|---|---|
public static RealmFileException.Kind | |
public static RealmFileException.Kind | values () |
Inherited Methods
Métodos heredados de la clase java.lang.Object:
getClass,hashCode,equals,clone,toString,notify,notifyAll,wait,wait,wait,finalizeMétodos heredados de la clase java.lang.Enum :
name,ordinal,toString,equals,hashCode,clone,compareTo,getDeclaringClass,valueOf,finalize
Detalle de constante de enumeración
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
Se lanza si el tipo de historial del Realm en disco es inesperado o incompatible.
EXISTS
public static final RealmFileException.Kind
Se lanza si el archivo de destino existe pero no debería existir.
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
Se lanza si se intenta abrir un archivo de Realm creado con Realm Object Server 1.*, que no es compatible con Realm Object Server 2.*. Esta excepción debe ser manejada automáticamente por Realm.
NOT_FOUND
public static final RealmFileException.Kind
Se arroja si no se puede encontrar el archivo correspondiente.
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.
Detalle del método
valueOf
values
public static RealmFileException.Kind values () |
|---|