Package io.objectbox.exception
package io.objectbox.exception
Various exceptions thrown by ObjectBox.
-
ClassDescriptionBase class for exceptions thrown when a constraint would be violated during a put operation.General exception for things that may go wrong with the database.Listener for exceptions occurring during database operations.Thrown when applying a database operation would exceed the (default)
maxSizeInKByte
configured for the Store.Thrown when applying a transaction would exceed themaxDataSizeInKByte
configured for the store.Thrown when the maximum of readers (read transactions) was exceeded.Thrown when there is an error with the data schema (data model).Thrown when an error occurred that requires the store to be closed.Thrown when a special feature was used, which is not part of the native library.Errors were detected in a database file, e.g.Thrown ifQuery.findUnique()
orQuery.findUniqueId()
is called, but the query matches more than one object.Thrown if a property query aggregate function can not compute a result due to a number type overflowing.Errors related to pages were detected in a database file, e.g.Thrown when a @Unique
constraint would be violated during a put operation.