Package io.realm.exceptions
Class RealmMigrationNeededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.realm.exceptions.RealmMigrationNeededException
-
- All Implemented Interfaces:
Serializable
public final class RealmMigrationNeededException extends RuntimeException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RealmMigrationNeededException(String canonicalRealmPath, String detailMessage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPath()
Returns the canonical path to the Realm file that needs to be migrated.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getPath
public String getPath()
Returns the canonical path to the Realm file that needs to be migrated.This can be used for easy reference during a migration:
- Returns:
- Canonical path to the Realm file.
- See Also:
File.getCanonicalPath()
-
-