public class ArtifactResolutionException extends RepositoryException
| Constructor and Description | 
|---|
| ArtifactResolutionException(List<ArtifactResult> results)Creates a new exception with the specified results. | 
| ArtifactResolutionException(List<ArtifactResult> results,
                                                      String message)Creates a new exception with the specified results and detail message. | 
| ArtifactResolutionException(List<ArtifactResult> results,
                                                      String message,
                                                      Throwable cause)Creates a new exception with the specified results, detail message and cause. | 
| Modifier and Type | Method and Description | 
|---|---|
| ArtifactResult | getResult()Gets the first result from  getResults(). | 
| List<ArtifactResult> | getResults()Gets the resolution results at the point the exception occurred. | 
getMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ArtifactResolutionException(List<ArtifactResult> results)
results - The resolution results at the point the exception occurred, may be null.public ArtifactResolutionException(List<ArtifactResult> results, String message)
results - The resolution results at the point the exception occurred, may be null.message - The detail message, may be null.public ArtifactResolutionException(List<ArtifactResult> results, String message, Throwable cause)
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.public List<ArtifactResult> getResults()
null if unknown.public ArtifactResult getResult()
getResults(). This is a convenience method for cases where callers know only
 a single result/request is involved.null if none.Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.