class Roby::ExceptionBase

Base class for all Roby exceptions

Attributes

original_exceptions[RW]

List of Exception objects that caused this

@return [Array<Exception>]

Public Class Methods

new(exceptions = Array.new) click to toggle source
# File lib/roby/standard_errors.rb, line 49
def initialize(exceptions = Array.new)
    @original_exceptions = exceptions
end

Public Instance Methods

each_original_exception(&block) click to toggle source
# File lib/roby/standard_errors.rb, line 53
def each_original_exception(&block)
    @original_exceptions.each(&block)
end
report_exceptions_from(object) click to toggle source
# File lib/roby/standard_errors.rb, line 57
def report_exceptions_from(object)
    if object.kind_of?(Exception)
        original_exceptions << object
    elsif object.respond_to?(:report_exceptions_on)
        object.report_exceptions_on(self)
    elsif object.respond_to?(:context) && object.context
        object.context.each do |c|
            report_exceptions_from(c)
        end
    elsif object.respond_to?(:failure_reason)
        report_exceptions_from(object.failure_reason)
    end
end