Class: Parallel::ExceptionWrapper
- Inherits:
-
Object
- Object
- Parallel::ExceptionWrapper
- Defined in:
- lib/parallel.rb
Instance Attribute Summary collapse
-
#exception ⇒ Object
readonly
Returns the value of attribute exception.
Instance Method Summary collapse
-
#initialize(exception) ⇒ ExceptionWrapper
constructor
A new instance of ExceptionWrapper.
Constructor Details
#initialize(exception) ⇒ ExceptionWrapper
Returns a new instance of ExceptionWrapper.
32 33 34 35 36 37 38 39 |
# File 'lib/parallel.rb', line 32 def initialize(exception) @exception = begin Marshal.dump(exception) && exception rescue UndumpableException.new(exception) end end |
Instance Attribute Details
#exception ⇒ Object (readonly)
Returns the value of attribute exception.
31 32 33 |
# File 'lib/parallel.rb', line 31 def exception @exception end |