net.dpml.transit.artifact
Class ArtifactAlreadyExistsException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byjava.net.ProtocolException
                  extended bynet.dpml.transit.TransitException
                      extended bynet.dpml.transit.artifact.ArtifactException
                          extended bynet.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.0.1
Author:
Digital Product Meta Library
See Also:
Serialized Form

Constructor Summary
ArtifactAlreadyExistsException(String message, Artifact artifact)
          Construct a new ArtifactAlreadyExistsException instance.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArtifactAlreadyExistsException

public ArtifactAlreadyExistsException(String message,
                                      Artifact artifact)
Construct a new ArtifactAlreadyExistsException instance.

Parameters:
message - the exception message
artifact - the subject artifact
Method Detail

getArtifact

public Artifact getArtifact()
Returns the Artifact that were attempted to be written to.

Returns:
the subject artifact