Exception: Async::Wrapper::Cancelled

Inherits:
StandardError
  • Object
show all
Defined in:
lib/async/wrapper.rb

Defined Under Namespace

Classes: From

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCancelled

Returns a new instance of Cancelled.



43
44
45
46
47
# File 'lib/async/wrapper.rb', line 43

def initialize
	super "The operation has been cancelled!"
	
	@cause = From.new
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



49
50
51
# File 'lib/async/wrapper.rb', line 49

def cause
  @cause
end