Exception: Roby::TaskStructure::ExecutionAgentNotReady
- Inherits:
-
CommandFailed
- Object
- RuntimeError
- ExceptionBase
- LocalizedError
- InternalTaskError
- CodeError
- CommandFailed
- Roby::TaskStructure::ExecutionAgentNotReady
- Defined in:
- lib/roby/task_structure/executed_by.rb
Overview
Exception raised when trying to start a task whose execution agent is not ready
Instance Attribute Summary collapse
-
#execution_agent ⇒ Object
readonly
Returns the value of attribute execution_agent.
Attributes inherited from LocalizedError
#failed_event, #failed_generator, #failed_task, #failure_point
Attributes inherited from ExceptionBase
Instance Method Summary collapse
-
#initialize(task) ⇒ ExecutionAgentNotReady
constructor
A new instance of ExecutionAgentNotReady.
- #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) ⇒ ExecutionAgentNotReady
Returns a new instance of ExecutionAgentNotReady.
207 208 209 210 |
# File 'lib/roby/task_structure/executed_by.rb', line 207 def initialize(task) super(nil, task.start_event) @execution_agent = task.execution_agent end |
Instance Attribute Details
#execution_agent ⇒ Object (readonly)
Returns the value of attribute execution_agent.
205 206 207 |
# File 'lib/roby/task_structure/executed_by.rb', line 205 def execution_agent @execution_agent end |
Instance Method Details
#pretty_print(pp) ⇒ Object
212 213 214 215 216 217 218 219 |
# File 'lib/roby/task_structure/executed_by.rb', line 212 def pretty_print(pp) pp.text "attempted to start a task buts its agent is not ready" pp.breakable failed_task.pretty_print(pp) pp.breakable pp.text "executed_by " execution_agent.pretty_print(pp) end |