net.dpml.transit.artifact
Class ArtifactAlreadyExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.net.ProtocolException
                  extended by net.dpml.transit.TransitException
                      extended by net.dpml.transit.artifact.ArtifactException
                          extended by 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

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