Exception: Concurrent::Futures::AsyncError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Concurrent::Futures::AsyncError
- Defined in:
- lib/concurrent/futures.rb,
ext/concurrent/futures/futures.c
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(reason, desc = nil) ⇒ AsyncError
constructor
A new instance of AsyncError.
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
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
24 25 26 |
# File 'lib/concurrent/futures.rb', line 24 def reason @reason end |