Class ArtifactTransferException

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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

      • ArtifactTransferException

        public ArtifactTransferException​(Artifact artifact,
                                         RemoteRepository repository,
                                         java.lang.String message)
        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.
      • ArtifactTransferException

        public ArtifactTransferException​(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 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.
      • ArtifactTransferException

        public ArtifactTransferException​(Artifact artifact,
                                         RemoteRepository repository,
                                         java.lang.Throwable cause)
        Creates 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.
      • ArtifactTransferException

        public ArtifactTransferException​(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 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 Detail

      • getArtifact

        public Artifact getArtifact()
        Gets the artifact that could not be transferred.
        Returns:
        The troublesome artifact or null if unknown.
      • getRepository

        public RemoteRepository getRepository()
        Gets the remote repository involved in the transfer.
        Returns:
        The involved remote repository or null if unknown.
      • isFromCache

        public boolean isFromCache()
        Indicates whether this exception actually just occurred or was played back from the error cache.
        Returns:
        true if the exception was played back from the error cache, false if the exception actually occurred just now.