Exception: Syskit::IncompatibleComponentModels
- Defined in:
- lib/syskit/exceptions.rb
Overview
Exception raised when two lists of models cannot be merged
See Models.merge_model_lists
Instance Attribute Summary collapse
-
#model_a ⇒ Object
readonly
Returns the value of attribute model_a.
-
#model_b ⇒ Object
readonly
Returns the value of attribute model_b.
Instance Method Summary collapse
-
#initialize(model_a, model_b) ⇒ IncompatibleComponentModels
constructor
A new instance of IncompatibleComponentModels.
- #pretty_print(pp) ⇒ Object
Constructor Details
#initialize(model_a, model_b) ⇒ IncompatibleComponentModels
Returns a new instance of IncompatibleComponentModels
789 790 791 |
# File 'lib/syskit/exceptions.rb', line 789 def initialize(model_a, model_b) @model_a, @model_b = model_a, model_b end |
Instance Attribute Details
#model_a ⇒ Object (readonly)
Returns the value of attribute model_a
786 787 788 |
# File 'lib/syskit/exceptions.rb', line 786 def model_a @model_a end |
#model_b ⇒ Object (readonly)
Returns the value of attribute model_b
787 788 789 |
# File 'lib/syskit/exceptions.rb', line 787 def model_b @model_b end |
Instance Method Details
#pretty_print(pp) ⇒ Object
793 794 795 |
# File 'lib/syskit/exceptions.rb', line 793 def pretty_print(pp) pp.text "models #{model_a.short_name} and #{model_b.short_name} are incompatible" end |