123456789_123456789_123456789_123456789_123456789_

Exception: Gem::Molinillo::CircularDependencyError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, ResolverError, StandardError
Instance Chain:
self, ResolverError, StandardError
Inherits: Gem::Molinillo::ResolverError
Defined in: lib/rubygems/vendor/molinillo/lib/molinillo/errors.rb

Overview

Note:

This exception will be thrown if and only if a Vertex is added to a DependencyGraph that has a DependencyGraph::Vertex#path_to? an existing DependencyGraph::Vertex

An error caused by attempting to fulfil a dependency that was circular

Class Method Summary

Instance Attribute Summary

  • #dependencies readonly

    [Set] the dependencies responsible for causing the error.

    Constructor Details

    .new(vertices) ⇒ CircularDependencyError

    Initializes a new error with the given circular vertices.

    Parameters:

    [ GitHub ]
    
      
    # File 'lib/rubygems/vendor/molinillo/lib/molinillo/errors.rb', line 47
    
    def initialize(vertices)
      super "There is a circular dependency between #{vertices.map(&:name).join(' and ')}"
      @dependencies = vertices.map { |vertex| vertex.payload.possibilities.last }.to_set
    end
    

    Instance Attribute Details

    #dependencies (readonly)

    [Set] the dependencies responsible for causing the error

    [ GitHub ]
    
      
    # File 'lib/rubygems/vendor/molinillo/lib/molinillo/errors.rb', line 42
    
    attr_reader :dependencies