Exception: Bundler::PubGrub::SolveFailure
- Inherits:
-
StandardError
- Object
- StandardError
- Bundler::PubGrub::SolveFailure
- Defined in:
- lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb
Instance Attribute Summary collapse
-
#incompatibility ⇒ Object
readonly
Returns the value of attribute incompatibility.
Instance Method Summary collapse
- #explanation ⇒ Object
-
#initialize(incompatibility) ⇒ SolveFailure
constructor
A new instance of SolveFailure.
- #to_s ⇒ Object
Constructor Details
#initialize(incompatibility) ⇒ SolveFailure
Returns a new instance of SolveFailure.
7 8 9 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb', line 7 def initialize(incompatibility) @incompatibility = incompatibility end |
Instance Attribute Details
#incompatibility ⇒ Object (readonly)
Returns the value of attribute incompatibility.
5 6 7 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb', line 5 def incompatibility @incompatibility end |
Instance Method Details
#explanation ⇒ Object
15 16 17 |
# File 'lib/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb', line 15 def explanation @explanation ||= FailureWriter.new(@incompatibility).write end |
#to_s ⇒ Object
11 12 13 |
# 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 |