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.



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

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

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



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

def reason
  @reason
end