Exception: Ori::CancellationError

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

Direct Known Subclasses

DeadlockError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope, message = "Scope cancelled") ⇒ CancellationError

: (Scope scope, ?String? message) -> void



13
14
15
16
# File 'lib/ori.rb', line 13

def initialize(scope, message = "Scope cancelled")
  @scope = scope
  super(message)
end

Instance Attribute Details

#scopeObject (readonly)

: Scope



10
11
12
# File 'lib/ori.rb', line 10

def scope
  @scope
end