Exception: Concurrent::Futures::AsyncError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/concurrent/futures.rb,
ext/concurrent/futures/futures.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason, desc = nil) ⇒ AsyncError

Returns a new instance of AsyncError.



26
27
28
29
# File 'lib/concurrent/futures.rb', line 26

def initialize( reason, desc=nil )
  super( desc )
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



24
25
26
# File 'lib/concurrent/futures.rb', line 24

def reason
  @reason
end