Exception: Syskit::InstanciationError
- Defined in:
- lib/syskit/exceptions.rb
Direct Known Subclasses
InvalidComponentSelection, InvalidCompositionChildSelection, NameResolutionError
Instance Attribute Summary collapse
-
#instanciation_chain ⇒ Object
readonly
The instanciation chain, i.e.
Instance Method Summary collapse
-
#initialize ⇒ InstanciationError
constructor
A new instance of InstanciationError.
- #pretty_print(pp) ⇒ Object
Constructor Details
#initialize ⇒ InstanciationError
Returns a new instance of InstanciationError
568 569 570 |
# File 'lib/syskit/exceptions.rb', line 568 def initialize @instanciation_chain = [] end |
Instance Attribute Details
#instanciation_chain ⇒ Object (readonly)
The instanciation chain, i.e. an array of composition models that were being instanciated
566 567 568 |
# File 'lib/syskit/exceptions.rb', line 566 def instanciation_chain @instanciation_chain end |
Instance Method Details
#pretty_print(pp) ⇒ Object
572 573 574 575 576 577 578 579 580 581 582 |
# File 'lib/syskit/exceptions.rb', line 572 def pretty_print(pp) if !instanciation_chain.empty? pp.text "while instanciating" pp.nest(2) do pp.breakable pp.seplist(instanciation_chain.reverse) do |m| m.pretty_print(pp) end end end end |