123456789_123456789_123456789_123456789_123456789_

Exception: Bundler::PubGrub::SolveFailure

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, StandardError
Instance Chain:
self, StandardError
Inherits: StandardError
  • Object
Defined in: lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(incompatibility) ⇒ SolveFailure

[ GitHub ]

  
# 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