Exception: Gem::DependencyResolutionError

Inherits:
DependencyError show all
Defined in:
lib/rubygems/exceptions.rb

Overview

Raised by Gem::Resolver when a Gem::Dependency::Conflict reaches the toplevel. Indicates which dependencies were incompatible through #conflict and #conflicting_dependencies

Instance Attribute Summary collapse

Attributes inherited from Exception

#source_exception

Instance Method Summary collapse

Methods included from Deprecate

deprecate, skip, skip=, skip_during

Constructor Details

#initialize(conflict) ⇒ DependencyResolutionError


39
40
41
42
43
44
# File 'lib/rubygems/exceptions.rb', line 39

def initialize conflict
  @conflict = conflict
  a, b = conflicting_dependencies

  super "conflicting dependencies #{a} and #{b}\n#{@conflict.explanation}"
end

Instance Attribute Details

#conflictObject (readonly)

Returns the value of attribute conflict


37
38
39
# File 'lib/rubygems/exceptions.rb', line 37

def conflict
  @conflict
end

Instance Method Details

#conflicting_dependenciesObject


46
47
48
# File 'lib/rubygems/exceptions.rb', line 46

def conflicting_dependencies
  @conflict.conflicting_dependencies
end