class Roby::TaskEventNotExecutable
Same error than EventNotExecutable
, but for task events
The only difference is that this method displays some task-specific information
Public Class Methods
new(failure_point)
click to toggle source
Calls superclass method
Roby::LocalizedError::new
# File lib/roby/standard_errors.rb, line 178 def initialize(failure_point) super(failure_point) if !(@plan = failed_generator.task.plan) @removed_at = failed_generator.task.removed_at end end
Public Instance Methods
plan()
click to toggle source
# File lib/roby/standard_errors.rb, line 185 def plan; @plan end
pretty_print(pp)
click to toggle source
# File lib/roby/standard_errors.rb, line 188 def pretty_print(pp) pp.text "#{failed_generator.symbol} called but it is not executable on" pp.breakable failed_generator.task.pretty_print(pp) pp.breakable if plan pp.text "the task has NOT been garbage collected" elsif removed_at pp.text "#{failed_generator.task} has been removed from its plan at" removed_at.each do |line| pp.breakable pp.text " #{line}" end else pp.text "the task has never been included in a plan" end end
removed_at()
click to toggle source
# File lib/roby/standard_errors.rb, line 186 def removed_at; @removed_at end