Exception: Ji2p::ConcurrentExecutor::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ji2p/concurrent_executor.rb

Instance Method Summary collapse

Constructor Details

#initialize(exceptions) ⇒ Error

Returns a new instance of Error.



4
5
6
7
# File 'lib/ji2p/concurrent_executor.rb', line 4

def initialize(exceptions)
  @exceptions = exceptions
  super
end

Instance Method Details

#backtraceObject



13
14
15
16
# File 'lib/ji2p/concurrent_executor.rb', line 13

def backtrace
  traces = @exceptions.map { |e| e.backtrace }
  ["ConcurrentExecutor::Error START", traces, "END"].flatten
end

#messageObject



9
10
11
# File 'lib/ji2p/concurrent_executor.rb', line 9

def message
  @exceptions.map { | e | e.message }.join "\n"
end