Exception: Syskit::WrongPortConnectionDirection
- Defined in:
- lib/syskit/exceptions.rb
Overview
Exception raised when a connection is being created with mismatching port directions
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) ⇒ WrongPortConnectionDirection
constructor
A new instance of WrongPortConnectionDirection.
- #pretty_print(pp) ⇒ Object
Constructor Details
#initialize(source, sink) ⇒ WrongPortConnectionDirection
Returns a new instance of WrongPortConnectionDirection
802 803 804 805 |
# File 'lib/syskit/exceptions.rb', line 802 def initialize(source, sink) @source = source @sink = sink end |
Instance Attribute Details
#sink ⇒ Object (readonly)
Returns the value of attribute sink
801 802 803 |
# File 'lib/syskit/exceptions.rb', line 801 def sink @sink end |
#source ⇒ Object (readonly)
Returns the value of attribute source
801 802 803 |
# File 'lib/syskit/exceptions.rb', line 801 def source @source end |
Instance Method Details
#pretty_print(pp) ⇒ Object
807 808 809 |
# File 'lib/syskit/exceptions.rb', line 807 def pretty_print(pp) pp.text "cannot connect #{source} to #{sink}: this is not an output-to-input connection" end |