class Syskit::ModifyingFinalizedPortInfo

Raised during dataflow propagation if {#done_port_info} has already been called on a port that is being modified

Attributes

done_at[R]
port_name[R]
task[R]

Public Class Methods

new(task, port_name, done_at, propagation_class_name) click to toggle source
# File lib/syskit/exceptions.rb, line 941
def initialize(task, port_name, done_at, propagation_class_name)
    @task = task
    @port_name = port_name
    @done_at = done_at
    @propagation_class_name = propagation_class_name
end

Public Instance Methods

pretty_print(pp) click to toggle source
# File lib/syskit/exceptions.rb, line 948
def pretty_print(pp)
    pp.text "trying to change port information in #{@propagation_class_name} for #{task}.#{port_name} after done_port_info has been called"
    pp.breakable
    if done_at
        pp.text "== START done_port_info called at"
        done_at.each do |line|
            pp.nest(4) do
                pp.breakable
                pp.text line
            end
        end
        pp.breakable
        pp.text "== END done_port_info called at"
    else
        pp.text "set the logger for #{@propagation_class_name.gsub('::', '/')} to DEBUG to get a full backtrace of where done_port_info was called"
    end
end