Package org.eclipse.aether.transfer
Class ArtifactTransferException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.aether.RepositoryException
org.eclipse.aether.transfer.ArtifactTransferException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ArtifactNotFoundException
Thrown when an artifact could not be uploaded/downloaded to/from a particular remote repository.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionArtifactTransferException(Artifact artifact, RemoteRepository repository, String message) Creates a new exception with the specified artifact, repository and detail message.ArtifactTransferException(Artifact artifact, RemoteRepository repository, String message, boolean fromCache) Creates a new exception with the specified artifact, repository and detail message.ArtifactTransferException(Artifact artifact, RemoteRepository repository, String message, Throwable cause) Creates a new exception with the specified artifact, repository, detail message and cause.ArtifactTransferException(Artifact artifact, RemoteRepository repository, Throwable cause) Creates a new exception with the specified artifact, repository and cause.
- 
Method SummaryModifier and TypeMethodDescriptionGets the artifact that could not be transferred.Gets the remote repository involved in the transfer.booleanIndicates whether this exception actually just occurred or was played back from the error cache.Methods inherited from class org.eclipse.aether.RepositoryExceptiongetMessageMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ArtifactTransferExceptionCreates a new exception with the specified artifact, repository and detail message.- Parameters:
- artifact- The untransferable artifact, may be- null.
- repository- The involved remote repository, may be- null.
- message- The detail message, may be- null.
 
- 
ArtifactTransferExceptionpublic ArtifactTransferException(Artifact artifact, RemoteRepository repository, String message, boolean fromCache) Creates a new exception with the specified artifact, repository and detail message.- Parameters:
- artifact- The untransferable artifact, may be- null.
- repository- The involved remote repository, may be- null.
- message- The detail message, may be- null.
- fromCache-- trueif the exception was played back from the error cache,- falseif the exception actually just occurred.
 
- 
ArtifactTransferExceptionCreates a new exception with the specified artifact, repository and cause.- Parameters:
- artifact- The untransferable artifact, may be- null.
- repository- The involved remote repository, may be- null.
- cause- The exception that caused this one, may be- null.
 
- 
ArtifactTransferExceptionpublic ArtifactTransferException(Artifact artifact, RemoteRepository repository, String message, Throwable cause) Creates a new exception with the specified artifact, repository, detail message and cause.- Parameters:
- artifact- The untransferable artifact, may be- null.
- repository- The involved remote repository, may be- null.
- message- The detail message, may be- null.
- cause- The exception that caused this one, may be- null.
 
 
- 
- 
Method Details- 
getArtifactGets the artifact that could not be transferred.- Returns:
- The troublesome artifact or nullif unknown.
 
- 
getRepositoryGets the remote repository involved in the transfer.- Returns:
- The involved remote repository or nullif unknown.
 
- 
isFromCacheIndicates whether this exception actually just occurred or was played back from the error cache.- Returns:
- trueif the exception was played back from the error cache,- falseif the exception actually occurred just now.
 
 
-