Package org.fcrepo.kernel.api.exception
Class TombstoneException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.fcrepo.kernel.api.exception.RepositoryRuntimeException
org.fcrepo.kernel.api.exception.TombstoneException
- All Implemented Interfaces:
Serializable
Exception when a Tombstone
FedoraResource
is used where a real object is expected- Since:
- 10/16/14
- Author:
- cabeer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTombstoneException(FedoraResource resource) Construct a new tombstone exception for a resourceTombstoneException(FedoraResource resource, String tombstoneUri, String timemapUri) Create a new tombstone exception with a URI to the tombstone resource -
Method Summary
Modifier and TypeMethodDescriptionGet a URI to the tombstone resourceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TombstoneException
Construct a new tombstone exception for a resource- Parameters:
resource- the fedora resource
-
TombstoneException
Create a new tombstone exception with a URI to the tombstone resource- Parameters:
resource- the fedora resourcetombstoneUri- the uri to the tombstone resource for the Link header.timemapUri- the uri to the resource's timemap for a Link header.
-
-
Method Details
-
getTombstoneURI
Get a URI to the tombstone resource- Returns:
- the URI to the tombstone resource
-
getTimemapUri
- Returns:
- the timemap URI
-
getFedoraResource
- Returns:
- the original resource of the tombstone.
-