Package org.eclipse.aether.collection
Class UnsolvableVersionConflictException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.aether.RepositoryException
org.eclipse.aether.collection.UnsolvableVersionConflictException
- All Implemented Interfaces:
Serializable
Thrown in case of an unsolvable conflict between different version constraints for a dependency.
- See Also:
-
Constructor Summary
ConstructorDescriptionUnsolvableVersionConflictException
(String message, Collection<? extends List<? extends DependencyNode>> paths) Creates a new exception with the specified paths to conflicting nodes in the dependency graph.UnsolvableVersionConflictException
(Collection<? extends List<? extends DependencyNode>> paths) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionCollection
<? extends List<? extends DependencyNode>> getPaths()
Gets the paths leading to the conflicting dependencies.Gets the conflicting version constraints of the dependency.Methods inherited from class org.eclipse.aether.RepositoryException
getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsolvableVersionConflictException
@Deprecated public UnsolvableVersionConflictException(Collection<? extends List<? extends DependencyNode>> paths) Deprecated.Creates a new exception with the specified paths to conflicting nodes in the dependency graph.- Parameters:
paths
- The paths to the dependency nodes that participate in the version conflict, may benull
.
-
UnsolvableVersionConflictException
public UnsolvableVersionConflictException(String message, Collection<? extends List<? extends DependencyNode>> paths) Creates a new exception with the specified paths to conflicting nodes in the dependency graph.- Parameters:
message
- The strategy that throw the bucket in, must not benull
. Should provide concise message why this exception was thrown.paths
- The paths to the dependency nodes that participate in the version conflict, may benull
.- Since:
- 2.0.0
-
-
Method Details
-
getPaths
Gets the paths leading to the conflicting dependencies.- Returns:
- The (read-only) paths leading to the conflicting dependencies, never
null
.
-
getVersions
Gets the conflicting version constraints of the dependency.- Returns:
- The (read-only) conflicting version constraints, never
null
.
-
UnsolvableVersionConflictException(String, Collection)
instead.