net.dpml.transit.artifact
Class ArtifactAlreadyExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
java.net.ProtocolException
net.dpml.transit.TransitException
net.dpml.transit.artifact.ArtifactException
net.dpml.transit.artifact.ArtifactAlreadyExistsException
- All Implemented Interfaces:
- Serializable
public class ArtifactAlreadyExistsException
- extends ArtifactException
Exception to indicate that the Artifact already exists in the cache and
can therefor not be written to.
- Version:
- 1.1.0
- Author:
- Digital Product Meta Library
- See Also:
- Serialized Form
Method Summary |
Artifact |
getArtifact()
Returns the Artifact that were attempted to be written to. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ArtifactAlreadyExistsException
public ArtifactAlreadyExistsException(String message,
Artifact artifact)
- Construct a new
ArtifactAlreadyExistsException
instance.
- Parameters:
message
- the exception messageartifact
- the subject artifact
getArtifact
public Artifact getArtifact()
- Returns the Artifact that were attempted to be written to.
- Returns:
- the subject artifact