Exception: Roby::TaskStructure::MissingRequiredExecutionAgent

Inherits:
CommandFailed show all
Defined in:
lib/roby/task_structure/executed_by.rb

Overview

Exception raised when trying to start a task that requires an agent but has none

Instance Attribute Summary

Attributes inherited from LocalizedError

#failed_event, #failed_generator, #failed_task, #failure_point

Attributes inherited from ExceptionBase

#original_exceptions

Instance Method Summary collapse

Methods inherited from CodeError

#error, match, #original_exception

Methods inherited from LocalizedError

#fatal?, #involved_plan_object?, match, #propagated?, #to_execution_exception, to_execution_exception_matcher

Methods included from DRoby::V5::LocalizedErrorDumper

#droby_dump

Methods inherited from ExceptionBase

#each_original_exception, #report_exceptions_from

Methods included from DRoby::V5::ExceptionBaseDumper

#droby_dump

Methods included from DRoby::V5::Builtins::ExceptionDumper

#droby_dump

Constructor Details

#initialize(task) ⇒ MissingRequiredExecutionAgent

Returns a new instance of MissingRequiredExecutionAgent.



191
192
193
# File 'lib/roby/task_structure/executed_by.rb', line 191

def initialize(task)
    super(nil, task.start_event)
end

Instance Method Details

#pretty_print(pp) ⇒ Object



195
196
197
198
199
200
# File 'lib/roby/task_structure/executed_by.rb', line 195

def pretty_print(pp)
    pp.text "attempted to start a task that is "\
            "expecting an execution agent but has none"
    pp.breakable
    failed_task.pretty_print(pp)
end