Exception: Roby::TaskStructure::MissingRequiredExecutionAgent
- Inherits:
-
CommandFailed
- Object
- RuntimeError
- ExceptionBase
- LocalizedError
- InternalTaskError
- CodeError
- CommandFailed
- Roby::TaskStructure::MissingRequiredExecutionAgent
- 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
Instance Method Summary collapse
-
#initialize(task) ⇒ MissingRequiredExecutionAgent
constructor
A new instance of MissingRequiredExecutionAgent.
- #pretty_print(pp) ⇒ Object
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
Methods inherited from ExceptionBase
#each_original_exception, #report_exceptions_from
Methods included from DRoby::V5::ExceptionBaseDumper
Methods included from DRoby::V5::Builtins::ExceptionDumper
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 |