Package org.eclipse.aether.transfer
Class ArtifactNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.aether.RepositoryException
-
- org.eclipse.aether.transfer.ArtifactTransferException
-
- org.eclipse.aether.transfer.ArtifactNotFoundException
-
- All Implemented Interfaces:
java.io.Serializable
public class ArtifactNotFoundException extends ArtifactTransferException
Thrown when an artifact was not found in a particular repository.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArtifactNotFoundException(Artifact artifact, RemoteRepository repository)Creates a new exception with the specified artifact and repository.ArtifactNotFoundException(Artifact artifact, RemoteRepository repository, java.lang.String message)Creates a new exception with the specified artifact, repository and detail message.ArtifactNotFoundException(Artifact artifact, RemoteRepository repository, java.lang.String message, boolean fromCache)Creates a new exception with the specified artifact, repository and detail message.ArtifactNotFoundException(Artifact artifact, RemoteRepository repository, java.lang.String message, java.lang.Throwable cause)Creates a new exception with the specified artifact, repository, detail message and cause.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.StringgetMessage(Artifact artifact, RemoteRepository repository)-
Methods inherited from class org.eclipse.aether.transfer.ArtifactTransferException
getArtifact, getRepository, getString, isFromCache
-
Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
-
-
-
-
Constructor Detail
-
ArtifactNotFoundException
public ArtifactNotFoundException(Artifact artifact, RemoteRepository repository)
Creates a new exception with the specified artifact and repository.- Parameters:
artifact- The missing artifact, may benull.repository- The involved remote repository, may benull.
-
ArtifactNotFoundException
public ArtifactNotFoundException(Artifact artifact, RemoteRepository repository, java.lang.String message)
Creates a new exception with the specified artifact, repository and detail message.- Parameters:
artifact- The missing artifact, may benull.repository- The involved remote repository, may benull.message- The detail message, may benull.
-
ArtifactNotFoundException
public ArtifactNotFoundException(Artifact artifact, RemoteRepository repository, java.lang.String message, boolean fromCache)
Creates a new exception with the specified artifact, repository and detail message.- Parameters:
artifact- The missing artifact, may benull.repository- The involved remote repository, may benull.message- The detail message, may benull.fromCache-trueif the exception was played back from the error cache,falseif the exception actually just occurred.
-
ArtifactNotFoundException
public ArtifactNotFoundException(Artifact artifact, RemoteRepository repository, java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the specified artifact, repository, detail message and cause.- Parameters:
artifact- The missing artifact, may benull.repository- The involved remote repository, may benull.message- The detail message, may benull.cause- The exception that caused this one, may benull.
-
-
Method Detail
-
getMessage
private static java.lang.String getMessage(Artifact artifact, RemoteRepository repository)
-
-