Exception: Bundler::PubGrub::SolveFailure
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
StandardError
|
|
Instance Chain:
self,
StandardError
|
|
Inherits: |
StandardError
|
Defined in: | lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb |
Class Method Summary
- .new(incompatibility) ⇒ SolveFailure constructor
Instance Attribute Summary
- #incompatibility readonly
Instance Method Summary
Constructor Details
.new(incompatibility) ⇒ SolveFailure
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb', line 7
def initialize(incompatibility) @incompatibility = incompatibility end
Instance Attribute Details
#incompatibility (readonly)
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb', line 5
attr_reader :incompatibility
Instance Method Details
#explanation
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb', line 15
def explanation @explanation ||= FailureWriter.new(@incompatibility).write end
#to_s
[ GitHub ]# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb', line 11
def to_s "Could not find compatible versions\n\n#{explanation}" end