Exception: Ji2p::ConcurrentExecutor::Error
- Defined in:
- lib/ji2p/concurrent_executor.rb
Instance Method Summary collapse
- #backtrace ⇒ Object
-
#initialize(exceptions) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
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
#backtrace ⇒ Object
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 |
#message ⇒ Object
9 10 11 |
# File 'lib/ji2p/concurrent_executor.rb', line 9 def @exceptions.map { | e | e. }.join "\n" end |