public class ArtifactTransferException extends RepositoryException
Constructor and Description |
---|
ArtifactTransferException(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.
|
Modifier and Type | Method and Description |
---|---|
Artifact |
getArtifact()
Gets the artifact that could not be transferred.
|
RemoteRepository |
getRepository()
Gets the remote repository involved in the transfer.
|
boolean |
isFromCache()
Indicates whether this exception actually just occurred or was played back from the error cache.
|
getMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ArtifactTransferException(Artifact artifact, RemoteRepository repository, String message)
artifact
- The untransferable artifact, may be null
.repository
- The involved remote repository, may be null
.message
- The detail message, may be null
.public ArtifactTransferException(Artifact artifact, RemoteRepository repository, String message, boolean fromCache)
artifact
- The untransferable artifact, may be null
.repository
- The involved remote repository, may be null
.message
- The detail message, may be null
.fromCache
- true
if the exception was played back from the error cache, false
if the
exception actually just occurred.public ArtifactTransferException(Artifact artifact, RemoteRepository repository, Throwable cause)
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
.public ArtifactTransferException(Artifact artifact, RemoteRepository repository, String message, Throwable cause)
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
.public Artifact getArtifact()
null
if unknown.public RemoteRepository getRepository()
null
if unknown.public boolean isFromCache()
true
if the exception was played back from the error cache, false
if the exception
actually occurred just now.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.