Exception: Pikuri::Agent::Control::Cancellable::Cancelled

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pikuri/agent/control/cancellable.rb

Overview

Raised by #check! once #cancel! has been called. Carries no fields; the cancellation reason (“the user asked us to stop”) is implicit in the exception class. Pikuri::Agent#run_loop catches this, emits Event::Cancelled, and re-raises so the caller (typically a REPL) can return control to the user.

Instance Method Summary collapse

Constructor Details

#initializeCancelled

Returns a new instance of Cancelled.



58
59
60
# File 'lib/pikuri/agent/control/cancellable.rb', line 58

def initialize
  super('Agent loop cancelled')
end