Exception: Gem::ImpossibleDependenciesError
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Exception ,
RuntimeError
|
|
Instance Chain:
self,
Exception ,
RuntimeError
|
|
Inherits: |
Gem::Exception
|
Defined in: | lib/rubygems/exceptions.rb |
Overview
Raised by Resolver
when dependencies conflict and create the inability to find a valid possible spec for a request.
Class Method Summary
Instance Attribute Summary
- #conflicts readonly
- #request readonly
Instance Method Summary
- #dependency
- #build_message Internal use only
Constructor Details
.new(request, conflicts) ⇒ ImpossibleDependenciesError
Instance Attribute Details
#conflicts (readonly)
[ GitHub ]# File 'lib/rubygems/exceptions.rb', line 116
attr_reader :conflicts
#request (readonly)
[ GitHub ]# File 'lib/rubygems/exceptions.rb', line 117
attr_reader :request
Instance Method Details
#build_message
This method is for internal use only.
[ GitHub ]
# File 'lib/rubygems/exceptions.rb', line 126
def # :nodoc: requester = @request.requester requester = requester ? requester.spec.full_name : 'The user' dependency = @request.dependency = "#{requester} requires #{dependency} but it conflicted:\n".dup @conflicts.each do |_, conflict| << conflict.explanation end end
#dependency
[ GitHub ]# File 'lib/rubygems/exceptions.rb', line 140
def dependency @request.dependency end