Exception: Syskit::SelfConnection
- Defined in:
- lib/syskit/exceptions.rb
Overview
Exception raised when a connection is being created between two ports of the same component
Instance Attribute Summary collapse
-
#sink ⇒ Object
readonly
Returns the value of attribute sink.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, sink) ⇒ SelfConnection
constructor
A new instance of SelfConnection.
- #pretty_print(pp) ⇒ Object
Constructor Details
#initialize(source, sink) ⇒ SelfConnection
Returns a new instance of SelfConnection
830 831 832 833 |
# File 'lib/syskit/exceptions.rb', line 830 def initialize(source, sink) @source = source @sink = sink end |
Instance Attribute Details
#sink ⇒ Object (readonly)
Returns the value of attribute sink
829 830 831 |
# File 'lib/syskit/exceptions.rb', line 829 def sink @sink end |
#source ⇒ Object (readonly)
Returns the value of attribute source
829 830 831 |
# File 'lib/syskit/exceptions.rb', line 829 def source @source end |
Instance Method Details
#pretty_print(pp) ⇒ Object
835 836 837 |
# File 'lib/syskit/exceptions.rb', line 835 def pretty_print(pp) pp.text "cannot connect #{source} to #{sink}: they are ports of the same component" end |