Sha256: d518addd6957c7e338bb90b5706fd1bf19ec8005aac3d08c3bcc5dd1f87973a1

Contents?: true

Size: 359 Bytes

Versions: 13

Compression:

Stored size: 359 Bytes

Contents

require 'pub_grub/failure_writer'

module PubGrub
  class SolveFailure < StandardError
    def initialize(incompatibility)
      @incompatibility = incompatibility
    end

    def to_s
      "Could not find compatible versions\n\n#{explanation}"
    end

    def explanation
      @explanation ||= FailureWriter.new(@incompatibility).write
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pub_grub-0.5.0 lib/pub_grub/solve_failure.rb
pub_grub-0.5.0.alpha3 lib/pub_grub/solve_failure.rb
pub_grub-0.5.0.alpha2 lib/pub_grub/solve_failure.rb
pub_grub-0.5.0.alpha1 lib/pub_grub/solve_failure.rb
pub_grub-0.5.0.alpha lib/pub_grub/solve_failure.rb
pub_grub-0.4.3 lib/pub_grub/solve_failure.rb
pub_grub-0.4.2 lib/pub_grub/solve_failure.rb
pub_grub-0.4.1 lib/pub_grub/solve_failure.rb
pub_grub-0.4.0 lib/pub_grub/solve_failure.rb
pub_grub-0.3.2 lib/pub_grub/solve_failure.rb
pub_grub-0.3.1 lib/pub_grub/solve_failure.rb
pub_grub-0.3.0 lib/pub_grub/solve_failure.rb
pub_grub-0.2.0 lib/pub_grub/solve_failure.rb