Exception: Syskit::SelfConnection

Inherits:
RuntimeError
  • Object
show all
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

Instance Method Summary collapse

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

#sinkObject (readonly)

Returns the value of attribute sink



829
830
831
# File 'lib/syskit/exceptions.rb', line 829

def sink
  @sink
end

#sourceObject (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