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
public class TombstoneException extends RepositoryRuntimeException
Exception when a TombstoneFedoraResourceis used where a real object is expected- Since:
- 10/16/14
- Author:
- cabeer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TombstoneException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FedoraResourcegetFedoraResource()StringgetTimemapUri()StringgetTombstoneURI()Get a URI to the tombstone resource-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
TombstoneException
public TombstoneException(FedoraResource resource)
Construct a new tombstone exception for a resource- Parameters:
resource- the fedora resource
-
TombstoneException
public TombstoneException(FedoraResource resource, String tombstoneUri, String timemapUri)
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 Detail
-
getTombstoneURI
public String getTombstoneURI()
Get a URI to the tombstone resource- Returns:
- the URI to the tombstone resource
-
getTimemapUri
public String getTimemapUri()
- Returns:
- the timemap URI
-
getFedoraResource
public FedoraResource getFedoraResource()
- Returns:
- the original resource of the tombstone.
-
-