Class ArtifactResolutionException

    • Constructor Detail

      • ArtifactResolutionException

        public ArtifactResolutionException​(List<ArtifactResult> results)
        Creates a new exception with the specified results.
        Parameters:
        results - The resolution results at the point the exception occurred, may be null.
      • ArtifactResolutionException

        public ArtifactResolutionException​(List<ArtifactResult> results,
                                           String message)
        Creates a new exception with the specified results and detail message.
        Parameters:
        results - The resolution results at the point the exception occurred, may be null.
        message - The detail message, may be null.
      • ArtifactResolutionException

        public ArtifactResolutionException​(List<ArtifactResult> results,
                                           String message,
                                           Throwable cause)
        Creates a new exception with the specified results, detail message and cause.
        Parameters:
        results - The resolution results at the point the exception occurred, may be null.
        message - The detail message, may be null.
        cause - The exception that caused this one, may be null.
    • Method Detail

      • getResults

        public List<ArtifactResultgetResults()
        Gets the resolution results at the point the exception occurred. Despite being incomplete, callers might want to use these results to fail gracefully and continue their operation with whatever interim data has been gathered.
        Returns:
        The resolution results or null if unknown.
      • getResult

        public ArtifactResult getResult()
        Gets the first result from getResults(). This is a convenience method for cases where callers know only a single result/request is involved.
        Returns:
        The (first) resolution result or null if none.