class Roby::PlanningFailedError

This exception is raised when a task is abstract, and its planner failed: the system will therefore not have a suitable executable development for this task, and this is a failure

Attributes

failure_reason[R]

The reason for the failure

planning_task[R]

The planning task

Public Class Methods

new(planned_task, planning_task, failure_reason: planning_task.failure_reason) click to toggle source
Calls superclass method Roby::LocalizedError::new
# File lib/roby/task_structure/planned_by.rb, line 71
def initialize(planned_task, planning_task, failure_reason: planning_task.failure_reason)
    super(planned_task)
    @planning_task = planning_task
    @failure_reason = failure_reason
    report_exceptions_from(failure_reason)
end

Public Instance Methods

planned_task() click to toggle source

The planned task

# File lib/roby/task_structure/planned_by.rb, line 67
def planned_task; failed_task end
pretty_print(pp) click to toggle source
# File lib/roby/task_structure/planned_by.rb, line 78
def pretty_print(pp)
    pp.text "failed to plan "
    planned_task.pretty_print(pp)
    pp.breakable
    pp.text "planned by "
    planning_task.pretty_print(pp)
    pp.breakable
    pp.text " failed with "
    failure_reason.pretty_print(pp)
end