Class: Syskit::DataflowPropagationError
- Defined in:
- lib/syskit/exceptions.rb
Instance Attribute Summary collapse
-
#port_name ⇒ Object
readonly
Returns the value of attribute port_name.
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Instance Method Summary collapse
-
#initialize(exception, task, port_name) ⇒ DataflowPropagationError
constructor
A new instance of DataflowPropagationError.
- #pretty_print(pp) ⇒ Object
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_name ⇒ Object (readonly)
Returns the value of attribute port_name
972 973 974 |
# File 'lib/syskit/exceptions.rb', line 972 def port_name @port_name end |
#task ⇒ Object (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 |