123456789_123456789_123456789_123456789_123456789_

Exception: Gem::DependencyResolutionError

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, DependencyError, Exception, Deprecate, RuntimeError
Instance Chain:
self, DependencyError, Exception, RuntimeError
Inherits: Gem::DependencyError
Defined in: lib/rubygems/exceptions.rb

Overview

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

Class Method Summary

Deprecate - Extended

deprecate

Simple deprecation method that deprecates name by wrapping it up in a dummy method.

skip_during

Temporarily turn off warnings.

Instance Attribute Summary

Exception - Inherited

Instance Method Summary

Constructor Details

.new(conflict) ⇒ DependencyResolutionError

[ GitHub ]

  
# File 'lib/rubygems/exceptions.rb', line 36

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

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

Instance Attribute Details

#conflict (readonly)

[ GitHub ]

  
# File 'lib/rubygems/exceptions.rb', line 34

attr_reader :conflict

Instance Method Details

#conflicting_dependencies

[ GitHub ]

  
# File 'lib/rubygems/exceptions.rb', line 43

def conflicting_dependencies
  @conflict.conflicting_dependencies
end