class ZTK::Parallel::ExceptionWrapper
Tests if we can marshal an exception via the results; otherwise creates an exception we can marshal.
Attributes
exception[R]
Public Class Methods
new(exception)
click to toggle source
# File lib/ztk/parallel.rb, line 59 def initialize(exception) dumpable = (Marshal.dump(exception) rescue nil) dumpable.nil? and (exception = RuntimeError.new(exception.inspect)) @exception = exception end