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.



45
46
47
48
49
# File 'lib/async/wrapper.rb', line 45

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

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



51
52
53
# File 'lib/async/wrapper.rb', line 51

def cause
  @cause
end