public class ArtifactResolutionException extends RepositoryException
Modifier and Type | Field and Description |
---|---|
private java.util.List<ArtifactResult> |
results |
Constructor and 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 and Description |
---|---|
private static java.lang.Throwable |
getCause(java.util.List<? extends ArtifactResult> results) |
private static java.lang.String |
getMessage(java.util.List<? extends ArtifactResult> results) |
ArtifactResult |
getResult()
Gets the first result from
getResults() . |
java.util.List<ArtifactResult> |
getResults()
Gets the resolution results at the point the exception occurred.
|
getMessage
private final transient java.util.List<ArtifactResult> results
public 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.private static java.lang.String getMessage(java.util.List<? extends ArtifactResult> results)
private static java.lang.Throwable getCause(java.util.List<? extends ArtifactResult> results)