Exception: Gem::Resolver::Molinillo::CircularDependencyError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ResolverError,
StandardError
|
|
Instance Chain:
self,
ResolverError,
StandardError
|
|
Inherits: |
Gem::Resolver::Molinillo::ResolverError
|
Defined in: | lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb |
Overview
Note:
This exception will be thrown iff 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
-
.new(nodes) ⇒ CircularDependencyError
constructor
Initializes a new error with the given circular vertices.
Instance Attribute Summary
-
#dependencies
readonly
- Set<Object>
the dependencies responsible for causing the error.
Constructor Details
.new(nodes) ⇒ CircularDependencyError
Initializes a new error with the given circular vertices.
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb', line 46
def initialize(nodes) super "There is a circular dependency between #{nodes.map(&:name).join(' and ')}" @dependencies = nodes.map(&:payload).to_set end
Instance Attribute Details
#dependencies (readonly)
- Set<Object>
-
the dependencies responsible for causing the error
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb', line 41
attr_reader :dependencies