class Syskit::InvalidComponentSelection

Exception raised when the dependency injection resolves to a selection that is not compatible with the expected type

Attributes

expected_model[R]
Model<DataService>,Model<Component>

the expected model

model[R]
Model<DataService>,Model<Component>

the model found by the

dependency injection

name[R]
String

the selection name

Public Class Methods

new(expected_model, name, model) click to toggle source
# File lib/syskit/exceptions.rb, line 592
def initialize(expected_model, name, model)
    @expected_model, @name, @model =
        expected_model, name, model
end

Public Instance Methods

pretty_print(pp) click to toggle source
# File lib/syskit/exceptions.rb, line 597
def pretty_print(pp)
    pp.text "model #{expected_model.short_name} found for '#{name}' is incompatible with the expected model #{expected_model.short_name}"
end