class Roby::SynchronousEventProcessingMultipleErrors

Exception wrapper used to report that multiple errors have been raised during a synchronous event processing call.

See ExecutionEngine#process_events_synchronous for more information

Attributes

errors[R]

Exceptions as gathered during propagation with {ExecutionEngine#task_m}

@return [Array<ExecutionEngine::PropagationInfo>]

Public Class Methods

new(errors) click to toggle source
# File lib/roby/execution_engine.rb, line 19
def initialize(errors)
    @errors = errors
end

Public Instance Methods

original_exceptions() click to toggle source

The set of underlying “real” (i.e. non-Roby) exceptions

@return [Array<Exception>]

# File lib/roby/execution_engine.rb, line 15
def original_exceptions
    errors
end
pretty_print(pp) click to toggle source
# File lib/roby/execution_engine.rb, line 23
def pretty_print(pp)
    pp.text "Got #{errors.size} exceptions and #{original_exceptions.size} sub-exceptions"
    pp.breakable
    pp.seplist(errors.each_with_index) do |e, i|
        Roby.flatten_exception(e).each_with_index do |sub_e, sub_i|
            pp.breakable
            pp.text "[#{i}.#{sub_i}] "
            sub_e.pretty_print(pp)
        end
    end
end