Exception: Xeno::Parked

Inherits:
Error
  • Object
show all
Defined in:
lib/xeno/errors.rb

Overview

Raised (internally) to park the turn: pending actions need human input. Never RubyLLM's cancel! — its cleanup destroys in-flight rows.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "turn parked awaiting input", actions: []) ⇒ Parked

Returns a new instance of Parked.



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

def initialize(message = "turn parked awaiting input", actions: [])
  super(message)
  @actions = actions
end

Instance Attribute Details

#actionsObject (readonly)

Returns the value of attribute actions.



11
12
13
# File 'lib/xeno/errors.rb', line 11

def actions
  @actions
end