Exception: CyclicDependencyError

Inherits:
RuntimeError
  • Object
show all
Defined in:
exceptions.rb

Overview

Raised when one or more formulae have cyclic dependencies.

Instance Method Summary collapse

Constructor Details

#initialize(strongly_connected_components) ⇒ CyclicDependencyError

Returns a new instance of CyclicDependencyError.



766
767
768
769
770
771
# File 'exceptions.rb', line 766

def initialize(strongly_connected_components)
  super <<~EOS
    The following packages contain cyclic dependencies:
      #{strongly_connected_components.select { |packages| packages.count > 1 }.map(&:to_sentence).join("\n  ")}
  EOS
end