public class ClientResetRequiredError extends ObjectServerError
Modifier and Type | Method and Description |
---|---|
void |
executeClientReset()
Calling this method will execute the Client Reset manually instead of waiting until next app restart.
|
File |
getBackupFile()
Returns the location of the backed up Realm file.
|
RealmConfiguration |
getBackupRealmConfiguration() |
File |
getOriginalFile()
Returns the location of the original Realm file.
|
getCategory, getErrorCode, getErrorMessage, getException, toString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public void executeClientReset()
IllegalStateException
will
be thrown.
After this method returns, the backup file can be found in the location returned by getBackupFile()
.
The file at getOriginalFile()
have been deleted, but will be recreated from scratch next time a
Realm instance is opened.
IllegalStateException
- if not all instances have been closed.public File getBackupFile()
file.exists()
to check if the file exists or not.public RealmConfiguration getBackupRealmConfiguration()
public File getOriginalFile()
file.exists()
to check this.