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