Exception: Gem::Resolver::Molinillo::CircularDependencyError
- Inherits:
-
ResolverError
- Object
- StandardError
- ResolverError
- Gem::Resolver::Molinillo::CircularDependencyError
- 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
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
- Set<Object>
-
the dependencies responsible for causing the error.
Instance Method Summary collapse
-
#initialize(nodes) ⇒ CircularDependencyError
constructor
A new instance of CircularDependencyError.
Constructor Details
#initialize(nodes) ⇒ CircularDependencyError
Returns a new instance of CircularDependencyError.
42 43 44 45 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb', line 42 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 ⇒ Object (readonly)
- Set<Object>
-
the dependencies responsible for causing the error
38 39 40 |
# File 'lib/rubygems/resolver/molinillo/lib/molinillo/errors.rb', line 38 def dependencies @dependencies end |