Package io.objectbox.exception
Class DbSchemaException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.objectbox.exception.DbException
-
- io.objectbox.exception.DbSchemaException
-
- All Implemented Interfaces:
java.io.Serializable
public class DbSchemaException extends DbException
Thrown when there is an error with the data schema (data model).Typically, there is a conflict between the data model defined in your code (using
@Entity
classes) and the data model of the existing database file.Read the meta model docs on why this can happen and how to resolve such conflicts.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DbSchemaException(java.lang.String message)
-
Method Summary
-
Methods inherited from class io.objectbox.exception.DbException
getErrorCode, toString
-
-