Exception: Roby::TaskStructure::ExecutionAgentNotReady

Inherits:
CommandFailed show all
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

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) ⇒ 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_agentObject (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