Exception: ParallelException

Inherits:
Exception
  • Object
show all
Defined in:
lib/parallelize/parallel_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exceptions) ⇒ ParallelException

Returns a new instance of ParallelException.



5
6
7
# File 'lib/parallelize/parallel_exception.rb', line 5

def initialize(exceptions)
  @exceptions = exceptions
end

Instance Attribute Details

#exceptionsHash (readonly)

Returns Hash of exceptions thrown. Indexed by thread index.

Returns:

  • (Hash)

    Hash of exceptions thrown. Indexed by thread index.



3
4
5
# File 'lib/parallelize/parallel_exception.rb', line 3

def exceptions
  @exceptions
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/parallelize/parallel_exception.rb', line 9

def to_s
  "Exceptions thrown during parallel execution: [#{@exceptions.inspect}]"
end