Exception: Pikuri::Agent::Control::Cancellable::Cancelled
- Inherits:
-
StandardError
- Object
- StandardError
- Pikuri::Agent::Control::Cancellable::Cancelled
- 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
-
#initialize ⇒ Cancelled
constructor
A new instance of Cancelled.
Constructor Details
#initialize ⇒ Cancelled
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 |