class Syskit::AmbiguousAutoConnection
Raised when trying to compute connection between a port and a set of ports (such as connecting a port to a service or component) and more than one match is found
Attributes
input_candidates[R]
The set of input candidates
output[R]
The output for which we were trying to find an input
Public Class Methods
new(output, input_candidates)
click to toggle source
# File lib/syskit/exceptions.rb, line 704 def initialize(output, input_candidates) @input_candidates, @output = input_candidates, output end
Public Instance Methods
pretty_print(pp)
click to toggle source
# File lib/syskit/exceptions.rb, line 709 def pretty_print(pp) pp.text "there is an ambiguity while automatically connecting " pp.text output.short_name pp.breakable pp.text "candidates:" input_candidates = self.input_candidates.sort_by(&:name) pp.nest(2) do pp.breakable pp.seplist(input_candidates) do |input_port| pp.text input_port.short_name end end end