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 TombstoneFedoraResource
is 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)
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 String
getURI()
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)
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.
-
-