Exception: ParallelException
- Inherits:
-
Exception
- Object
- Exception
- ParallelException
- Defined in:
- lib/parallelize/parallel_exception.rb
Instance Attribute Summary collapse
-
#exceptions ⇒ Hash
readonly
Hash of exceptions thrown.
Instance Method Summary collapse
-
#initialize(exceptions) ⇒ ParallelException
constructor
A new instance of ParallelException.
- #to_s ⇒ Object
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
#exceptions ⇒ Hash (readonly)
Returns 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_s ⇒ Object
9 10 11 |
# File 'lib/parallelize/parallel_exception.rb', line 9 def to_s "Exceptions thrown during parallel execution: [#{@exceptions.inspect}]" end |