Package org.eclipse.aether.collection
Class DependencyCollectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.aether.RepositoryException
-
- org.eclipse.aether.collection.DependencyCollectionException
-
- All Implemented Interfaces:
java.io.Serializable
public class DependencyCollectionException extends RepositoryException
Thrown in case of bad artifact descriptors, version ranges or other issues encountered during calculation of the dependency graph.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private CollectResult
result
-
Constructor Summary
Constructors Constructor Description DependencyCollectionException(CollectResult result)
Creates a new exception with the specified result.DependencyCollectionException(CollectResult result, java.lang.String message)
Creates a new exception with the specified result and detail message.DependencyCollectionException(CollectResult result, java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the specified result, detail message and cause.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.Throwable
getCause(CollectResult result)
CollectResult
getResult()
Gets the collection result at the point the exception occurred.private static java.lang.String
getSource(CollectResult result)
-
Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
-
-
-
-
Field Detail
-
result
private final transient CollectResult result
-
-
Constructor Detail
-
DependencyCollectionException
public DependencyCollectionException(CollectResult result)
Creates a new exception with the specified result.- Parameters:
result
- The collection result at the point the exception occurred, may benull
.
-
DependencyCollectionException
public DependencyCollectionException(CollectResult result, java.lang.String message)
Creates a new exception with the specified result and detail message.- Parameters:
result
- The collection result at the point the exception occurred, may benull
.message
- The detail message, may benull
.
-
DependencyCollectionException
public DependencyCollectionException(CollectResult result, java.lang.String message, java.lang.Throwable cause)
Creates a new exception with the specified result, detail message and cause.- Parameters:
result
- The collection 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
-
getResult
public CollectResult getResult()
Gets the collection 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 collection result or
null
if unknown.
-
getSource
private static java.lang.String getSource(CollectResult result)
-
getCause
private static java.lang.Throwable getCause(CollectResult result)
-
-