Exception: Roby::TaskStructure::MissingRequiredExecutionAgent

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

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.



179
180
181
# File 'lib/roby/task_structure/executed_by.rb', line 179

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

Instance Method Details

#pretty_print(pp) ⇒ Object



182
183
184
185
186
# File 'lib/roby/task_structure/executed_by.rb', line 182

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