Exception: Gem::DependencyResolutionError

Inherits:
Exception
  • Object
show all
Defined in:
lib/rubygems/dependency_resolver.rb

Overview

Raised when a DependencyConflict reaches the toplevel. Indicates which dependencies were incompatible.

Instance Attribute Summary collapse

Attributes inherited from Exception

#source_exception

Instance Method Summary collapse

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

#conflictObject (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_dependenciesObject



23
24
25
# File 'lib/rubygems/dependency_resolver.rb', line 23

def conflicting_dependencies
  @conflict.conflicting_dependencies
end