class Syskit::AmbiguousServiceMapping
Exception raised in composition instanciations if a selected component model provides multipe services that fullfills a child's model
Attributes
child_name[R]
composition_model[R]
Public Class Methods
new(composition_model, child_name, task_model, required_service, candidates)
click to toggle source
Calls superclass method
Syskit::AmbiguousServiceSelection.new
# File lib/syskit/exceptions.rb, line 237 def initialize(composition_model, child_name, task_model, required_service, candidates) super(task_model, required_service, candidates) @composition_model, @child_name = composition_model, child_name end
Public Instance Methods
pretty_print(pp)
click to toggle source
Calls superclass method
Syskit::AmbiguousServiceSelection#pretty_print
# File lib/syskit/exceptions.rb, line 243 def pretty_print(pp) pp.text "while trying to fullfill the constraints on the child #{child_name} of #{composition_model.short_name}" pp.breakable super end