class Roby::ToplevelTaskError

Exception raised when a mission has failed

Attributes

reason[R]

Public Class Methods

new(task, reason = nil) click to toggle source

Create a new MissionFailedError for the given mission

Calls superclass method Roby::LocalizedError::new
# File lib/roby/standard_errors.rb, line 432
def initialize(task, reason = nil)
    super(task.failure_event || task)
    @reason = reason || task.failure_reason
    report_exceptions_from(@reason)
end

Public Instance Methods

pretty_print(pp) click to toggle source
# File lib/roby/standard_errors.rb, line 438
def pretty_print(pp)
    if reason
        reason.pretty_print(pp)
    elsif failed_event
        failed_event.pretty_print(pp)
    else
        explanation = :success.to_unbound_task_predicate.explain_static(failed_task)
        explanation.pretty_print(pp)
    end
end
propagated?() click to toggle source
# File lib/roby/standard_errors.rb, line 429
def propagated?; false end