Class UnsolvableVersionConflictException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnsolvableVersionConflictException
    extends RepositoryException
    Thrown in case of an unsolvable conflict between different version constraints for a dependency.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Collection<? extends java.util.List<? extends DependencyNode>> paths  
      private java.util.Collection<java.lang.String> versions  
    • Constructor Summary

      Constructors 
      Constructor Description
      UnsolvableVersionConflictException​(java.util.Collection<? extends java.util.List<? extends DependencyNode>> paths)
      Creates a new exception with the specified paths to conflicting nodes in the dependency graph.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<? extends java.util.List<? extends DependencyNode>> getPaths()
      Gets the paths leading to the conflicting dependencies.
      java.util.Collection<java.lang.String> getVersions()
      Gets the conflicting version constraints of the dependency.
      private static java.lang.String toPath​(java.util.List<? extends DependencyNode> path)  
      private static java.lang.String toPaths​(java.util.Collection<? extends java.util.List<? extends DependencyNode>> paths)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • versions

        private final transient java.util.Collection<java.lang.String> versions
      • paths

        private final transient java.util.Collection<? extends java.util.List<? extends DependencyNode>> paths
    • Constructor Detail

      • UnsolvableVersionConflictException

        public UnsolvableVersionConflictException​(java.util.Collection<? extends java.util.List<? extends DependencyNode>> paths)
        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 be null.
    • Method Detail

      • toPaths

        private static java.lang.String toPaths​(java.util.Collection<? extends java.util.List<? extends DependencyNode>> paths)
      • toPath

        private static java.lang.String toPath​(java.util.List<? extends DependencyNode> path)
      • getPaths

        public java.util.Collection<? extends java.util.List<? extends DependencyNode>> getPaths()
        Gets the paths leading to the conflicting dependencies.
        Returns:
        The (read-only) paths leading to the conflicting dependencies, never null.
      • getVersions

        public java.util.Collection<java.lang.String> getVersions()
        Gets the conflicting version constraints of the dependency.
        Returns:
        The (read-only) conflicting version constraints, never null.