public class ArtifactResolutionException extends RepositoryException
| Constructor | Description |
|---|---|
ArtifactResolutionException(java.util.List<ArtifactResult> results) |
Creates a new exception with the specified results.
|
ArtifactResolutionException(java.util.List<ArtifactResult> results,
java.lang.String message) |
Creates a new exception with the specified results and detail message.
|
ArtifactResolutionException(java.util.List<ArtifactResult> results,
java.lang.String message,
java.lang.Throwable cause) |
Creates a new exception with the specified results, detail message and cause.
|
| Modifier and Type | Method | Description |
|---|---|---|
ArtifactResult |
getResult() |
Gets the first result from
getResults(). |
java.util.List<ArtifactResult> |
getResults() |
Gets the resolution results at the point the exception occurred.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessagepublic ArtifactResolutionException(java.util.List<ArtifactResult> results)
results - The resolution results at the point the exception occurred, may be null.public ArtifactResolutionException(java.util.List<ArtifactResult> results, java.lang.String message)
results - The resolution results at the point the exception occurred, may be null.message - The detail message, may be null.public ArtifactResolutionException(java.util.List<ArtifactResult> results, java.lang.String message, java.lang.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 java.util.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.