class Roby::TaskEmergencyTermination
Raised when an error occurs on a task while we were terminating it
Attributes
reason[R]
Public Class Methods
new(task, reason, quarantined = false)
click to toggle source
Calls superclass method
Roby::LocalizedError::new
# File lib/roby/standard_errors.rb, line 214 def initialize(task, reason, quarantined = false) super(task) @quarantined = quarantined @reason = reason report_exceptions_from(reason) end
Public Instance Methods
pretty_print(pp)
click to toggle source
Calls superclass method
Roby::LocalizedError#pretty_print
# File lib/roby/standard_errors.rb, line 222 def pretty_print(pp) pp.text "The following task is being terminated because of an internal error" pp.breakable if quarantined? pp.text "It has been put under quarantine" else pp.text "It is not yet put under quarantine" end pp.breakable super pp.breakable if !original_exceptions.include?(reason) reason.pretty_print(pp) end end
quarantined?()
click to toggle source
# File lib/roby/standard_errors.rb, line 210 def quarantined? !!@quarantined end