Exception: Gem::DependencyResolutionError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
DependencyError ,
Exception ,
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
- .new(conflict) ⇒ DependencyResolutionError constructor
Instance Attribute Summary
- #conflict readonly
Instance Method Summary
Constructor Details
.new(conflict) ⇒ DependencyResolutionError
# File 'lib/rubygems/exceptions.rb', line 24
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 22
attr_reader :conflict
Instance Method Details
#conflicting_dependencies
[ GitHub ]# File 'lib/rubygems/exceptions.rb', line 31
def conflicting_dependencies @conflict.conflicting_dependencies end