Package io.permazen.core
Class DeletedObjectException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.permazen.core.DatabaseException
io.permazen.core.DeletedObjectException
- All Implemented Interfaces:
Serializable
Thrown when an object is accessed but the object does not exist in its associated transaction.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructor.DeletedObjectException
(ObjId id, String message) Constructor.DeletedObjectException
(Transaction tx, ObjId id) Constructor. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DeletedObjectException
Constructor.- Parameters:
id
- the ID of the object that was not found
-
DeletedObjectException
Constructor.- Parameters:
tx
- the transaction within which this exception was generatedid
- the ID of the object that was not found- Throws:
NullPointerException
- iftx
is null
-
DeletedObjectException
Constructor.- Parameters:
id
- the ID of the object that was not foundmessage
- detail message
-
-
Method Details
-
getId
Get the ID of the object that could not be accessed.- Returns:
- deleted object's ID
-