Exception: Syskit::NoMatchingServiceForCompositionChild

Inherits:
NoMatchingService show all
Defined in:
lib/syskit/exceptions.rb

Overview

Refinement of NoMatchingService for a composition child. It adds the information of the composition / child name

Instance Attribute Summary collapse

Attributes inherited from NoMatchingService

#required_service, #task_model

Instance Method Summary collapse

Constructor Details

#initialize(composition_model, child_name, task_model, required_service) ⇒ NoMatchingServiceForCompositionChild

Returns a new instance of NoMatchingServiceForCompositionChild



186
187
188
189
# File 'lib/syskit/exceptions.rb', line 186

def initialize(composition_model, child_name, task_model, required_service)
    @composition_model, @child_name = composition_model, child_name
    super(task_model, required_service)
end

Instance Attribute Details

#child_nameObject (readonly)

Returns the value of attribute child_name



184
185
186
# File 'lib/syskit/exceptions.rb', line 184

def child_name
  @child_name
end

#composition_modelObject (readonly)

Returns the value of attribute composition_model



183
184
185
# File 'lib/syskit/exceptions.rb', line 183

def composition_model
  @composition_model
end

Instance Method Details

#pretty_print(pp) ⇒ Object



191
192
193
194
195
# File 'lib/syskit/exceptions.rb', line 191

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