org.codehaus.mojo.mrm.api.maven
Class ArtifactNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.codehaus.mojo.mrm.api.maven.ArtifactNotFoundException
All Implemented Interfaces:
Serializable

public class ArtifactNotFoundException
extends Exception

An exception that indicates that an artifact could not be found.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
ArtifactNotFoundException(Artifact artifact)
          Creates a new ArtifactNotFoundException.
ArtifactNotFoundException(Artifact artifact, Throwable cause)
          Creates a new ArtifactNotFoundException.
ArtifactNotFoundException(String message, Artifact artifact)
          Creates a new ArtifactNotFoundException.
ArtifactNotFoundException(String message, Artifact artifact, Throwable cause)
          Creates a new ArtifactNotFoundException.
 
Method Summary
 Artifact getArtifact()
          Gets the artifact that does not exist.
 
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

ArtifactNotFoundException

public ArtifactNotFoundException(Artifact artifact)
Creates a new ArtifactNotFoundException.

Parameters:
artifact - the artifact that was not found.
Since:
1.0

ArtifactNotFoundException

public ArtifactNotFoundException(Artifact artifact,
                                 Throwable cause)
Creates a new ArtifactNotFoundException.

Parameters:
artifact - the artifact that was not found.
cause - the reason why it was not found (or null if there is no specific reason)
Since:
1.0

ArtifactNotFoundException

public ArtifactNotFoundException(String message,
                                 Artifact artifact)
Creates a new ArtifactNotFoundException.

Parameters:
message - The message.
artifact - the artifact that was not found.
Since:
1.0

ArtifactNotFoundException

public ArtifactNotFoundException(String message,
                                 Artifact artifact,
                                 Throwable cause)
Creates a new ArtifactNotFoundException.

Parameters:
message - The message.
artifact - the artifact that was not found.
cause - the reason why it was not found (or null if there is no specific reason)
Since:
1.0
Method Detail

getArtifact

public Artifact getArtifact()
Gets the artifact that does not exist.

Returns:
the artifact that does not exist.
Since:
1.0


Copyright © 2009-2011 Codehaus. All Rights Reserved.