Package io.objectbox.exception
Class DbDetachedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.objectbox.exception.DbException
io.objectbox.exception.DbDetachedException
- All Implemented Interfaces:
Serializable
This exception occurs while working with a
ToMany
or
ToOne
of an object and the object is not attached to a
Box
(technically a BoxStore
).
If your code uses manually assigned
IDs make sure it takes care of some things that ObjectBox would normally do by itself. This includes
attaching
the Box to an object before modifying a ToMany.
Also see the documentation about Updating Relations and manually assigned IDs for details.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.objectbox.exception.DbException
getErrorCode, toString
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
DbDetachedException
public DbDetachedException() -
DbDetachedException
-