class Syskit::InvalidCompositionChildSelection
Exception raised when the user provided a composition child selection that is not compatible with the child definition
Attributes
child_name[R]
The child name for which the selection is invalid
composition_model[R]
The composition model
required_models[R]
The model required by the composition for child_name
selected_model[R]
The model selected by the user
Public Class Methods
new(composition_model, child_name, selected_model, required_models)
click to toggle source
Calls superclass method
Syskit::InstanciationError.new
# File lib/syskit/exceptions.rb, line 614 def initialize(composition_model, child_name, selected_model, required_models) super() @composition_model, @child_name, @selected_model, @required_models = composition_model, child_name, selected_model, required_models end
Public Instance Methods
pretty_print(pp)
click to toggle source
# File lib/syskit/exceptions.rb, line 620 def pretty_print(pp) pp.text "cannot use #{selected_model.short_name} for the child #{child_name} of #{composition_model.short_name}" pp.breakable pp.text "it does not provide the required models" pp.nest(2) do pp.breakable pp.seplist(required_models) do |m| pp.text m.short_name end end end