class Solve::Errors::UnsortableSolutionError

Attributes

internal_exception[R]
unsorted_solution[R]

Public Class Methods

new(internal_exception, unsorted_solution) click to toggle source
# File lib/solve/errors.rb, line 72
def initialize(internal_exception, unsorted_solution)
  @internal_exception = internal_exception
  @unsorted_solution  = unsorted_solution
end

Public Instance Methods

to_s() click to toggle source
# File lib/solve/errors.rb, line 77
def to_s
  "The solution contains a cycle and cannot be topologically sorted. See #unsorted_solution on this exception for the unsorted solution"
end