Package org.eclipse.aether.resolution
Class DependencyResolutionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.aether.RepositoryException
-
- org.eclipse.aether.resolution.DependencyResolutionException
-
- All Implemented Interfaces:
java.io.Serializable
public class DependencyResolutionException extends RepositoryException
Thrown in case of a unresolvable dependencies.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private DependencyResult
result
-
Constructor Summary
Constructors Constructor Description DependencyResolutionException(DependencyResult result, java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the specified result, detail message and cause.DependencyResolutionException(DependencyResult result, java.lang.Throwable cause)
Creates a new exception with the specified result and cause.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
getMessage(java.lang.Throwable cause)
DependencyResult
getResult()
Gets the dependency result at the point the exception occurred.-
Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
-
-
-
-
Field Detail
-
result
private final transient DependencyResult result
-
-
Constructor Detail
-
DependencyResolutionException
public DependencyResolutionException(DependencyResult result, java.lang.Throwable cause)
Creates a new exception with the specified result and cause.- Parameters:
result
- The dependency result at the point the exception occurred, may benull
.cause
- The exception that caused this one, may benull
.
-
DependencyResolutionException
public DependencyResolutionException(DependencyResult result, java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the specified result, detail message and cause.- Parameters:
result
- The dependency result at the point the exception occurred, may benull
.message
- The detail message, may benull
.cause
- The exception that caused this one, may benull
.
-
-
Method Detail
-
getMessage
private static java.lang.String getMessage(java.lang.Throwable cause)
-
getResult
public DependencyResult getResult()
Gets the dependency result at the point the exception occurred. Despite being incomplete, callers might want to use this result to fail gracefully and continue their operation with whatever interim data has been gathered.- Returns:
- The dependency result or
null
if unknown.
-
-