Class: Syskit::DataflowPropagationError

Inherits:
Roby::ExceptionBase
  • Object
show all
Defined in:
lib/syskit/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exception, task, port_name) ⇒ DataflowPropagationError

Returns a new instance of DataflowPropagationError



973
974
975
976
977
# File 'lib/syskit/exceptions.rb', line 973

def initialize(exception, task, port_name)
    @task = task
    @port_name = port_name
    super([exception])
end

Instance Attribute Details

#port_nameObject (readonly)

Returns the value of attribute port_name



972
973
974
# File 'lib/syskit/exceptions.rb', line 972

def port_name
  @port_name
end

#taskObject (readonly)

Returns the value of attribute task



972
973
974
# File 'lib/syskit/exceptions.rb', line 972

def task
  @task
end

Instance Method Details

#pretty_print(pp) ⇒ Object



979
980
981
982
983
984
985
# File 'lib/syskit/exceptions.rb', line 979

def pretty_print(pp)
    pp.text "error propagating information on port #{port_name} of"
    pp.nest(2) do
        pp.breakable
        task.pretty_print(pp)
    end
end