class Parallel::ExceptionWrapper
Attributes
exception[R]
Public Class Methods
new(exception)
click to toggle source
# File lib/parallel.rb, line 29 def initialize(exception) # Remove the bindings stack added by the better_errors gem, # because it cannot be marshalled if exception.instance_variable_defined? :@__better_errors_bindings_stack exception.send :remove_instance_variable, :@__better_errors_bindings_stack end @exception = begin Marshal.dump(exception) && exception rescue UndumpableException.new(exception) end end