Exception: Gem::DependencyResolutionError
- Defined in:
- lib/rubygems/dependency_resolver.rb
Overview
Raised when a DependencyConflict reaches the toplevel. Indicates which dependencies were incompatible.
Instance Attribute Summary collapse
-
#conflict ⇒ Object
readonly
Returns the value of attribute conflict.
Attributes inherited from Exception
Instance Method Summary collapse
- #conflicting_dependencies ⇒ Object
-
#initialize(conflict) ⇒ DependencyResolutionError
constructor
A new instance of DependencyResolutionError.
Constructor Details
#initialize(conflict) ⇒ DependencyResolutionError
Returns a new instance of DependencyResolutionError.
14 15 16 17 18 19 |
# File 'lib/rubygems/dependency_resolver.rb', line 14 def initialize(conflict) @conflict = conflict a, b = conflicting_dependencies super "unable to resolve conflicting dependencies '#{a}' and '#{b}'" end |
Instance Attribute Details
#conflict ⇒ Object (readonly)
Returns the value of attribute conflict.
21 22 23 |
# File 'lib/rubygems/dependency_resolver.rb', line 21 def conflict @conflict end |
Instance Method Details
#conflicting_dependencies ⇒ Object
23 24 25 |
# File 'lib/rubygems/dependency_resolver.rb', line 23 def conflicting_dependencies @conflict.conflicting_dependencies end |